Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
ba36cb3d
Commit
ba36cb3d
authored
Feb 09, 2018
by
Frank Exoo
Committed by
Marcel Stör
Feb 09, 2018
Browse files
MQTT re-connect issue (#2256)
Fix to start sending PINGREQ after a reconnect.
parent
2a944026
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/mqtt.c
View file @
ba36cb3d
...
@@ -337,6 +337,7 @@ READPACKET:
...
@@ -337,6 +337,7 @@ READPACKET:
}
else
{
}
else
{
mud
->
connState
=
MQTT_DATA
;
mud
->
connState
=
MQTT_DATA
;
NODE_DBG
(
"MQTT: Connected
\r\n
"
);
NODE_DBG
(
"MQTT: Connected
\r\n
"
);
mud
->
keepalive_sent
=
0
;
if
(
mud
->
mqtt_state
.
auto_reconnect
==
RECONNECT_POSSIBLE
)
{
if
(
mud
->
mqtt_state
.
auto_reconnect
==
RECONNECT_POSSIBLE
)
{
mud
->
mqtt_state
.
auto_reconnect
=
RECONNECT_ON
;
mud
->
mqtt_state
.
auto_reconnect
=
RECONNECT_ON
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment