Browse Source

mqtt: pin arduino mqtt version

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
098de0cb0b
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      code/espurna/mqtt.ino
  2. +1
    -1
      code/platformio.ini

+ 1
- 0
code/espurna/mqtt.ino View File

@ -187,6 +187,7 @@ bool _mqttConnectSyncClient(bool secure = false) {
#if MQTT_LIBRARY == MQTT_LIBRARY_ARDUINOMQTT
_mqtt.begin(_mqtt_server.c_str(), _mqtt_port, _mqttGetClient(secure));
_mqtt.setWill(_mqtt_will.c_str(), _mqtt_payload_offline.c_str(), _mqtt_retain, _mqtt_qos);
_mqtt.setKeepAlive(_mqtt_keepalive);
result = _mqtt.connect(_mqtt_clientid.c_str(), _mqtt_user.c_str(), _mqtt_pass.c_str());
#elif MQTT_LIBRARY == MQTT_LIBRARY_PUBSUBCLIENT
_mqtt.setClient(_mqttGetClient(secure));


+ 1
- 1
code/platformio.ini View File

@ -115,7 +115,7 @@ lib_deps =
https://github.com/xoseperez/justwifi.git#2.0.2
https://github.com/madpilot/mDNSResolver#4cfcda1
https://github.com/xoseperez/my92xx#3.0.1
MQTT
https://github.com/256dpi/arduino-mqtt#196556b6
https://bitbucket.org/xoseperez/nofuss.git#0.3.0
https://github.com/xoseperez/NtpClient.git#0942ebc
OneWire


Loading…
Cancel
Save