This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Force MQTT close client before reconnecting. Revert back to latest ESPAsyncTCP
fastled
Xose Pérez
8 years ago
parent
476d314498
commit
252bcbdded
2 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
code/espurna/mqtt.ino
+1
-1
code/platformio.ini
+ 2
- 0
code/espurna/mqtt.ino
View File
@ -131,6 +131,8 @@ void mqttConnect() {
if
(
!
mqtt
.
connected
(
)
)
{
mqtt
.
disconnect
(
)
;
char
*
host
=
strdup
(
getSetting
(
"
mqttServer
"
,
MQTT_SERVER
)
.
c_str
(
)
)
;
if
(
strlen
(
host
)
=
=
0
)
return
;
unsigned
int
port
=
getSetting
(
"
mqttPort
"
,
MQTT_PORT
)
.
toInt
(
)
;
+ 1
- 1
code/platformio.ini
View File
@ -9,7 +9,7 @@ lib_deps =
Adafruit Unified Sensor
https://github.com/xoseperez/Time
ArduinoJson
https://github.com/me-no-dev/
ESPAsyncTCP
#e074eaac
ESPAsyncTCP
ESPAsyncWebServer
https://github.com/marvinroger/async-mqtt-client
Embedis
Write
Preview
Loading…
Cancel
Save