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
d7da14d6
Commit
d7da14d6
authored
Feb 14, 2019
by
Arnim Läuger
Committed by
Marcel Stör
Feb 14, 2019
Browse files
MQTT: print deprecation message regardless of autoreconnect value (#2668)
parent
27e9e6c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/mqtt.c
View file @
d7da14d6
...
...
@@ -1328,10 +1328,8 @@ static int mqtt_socket_connect( lua_State* L )
if
(
(
stack
<=
top
)
&&
lua_isnumber
(
L
,
stack
)
)
{
platform_print_deprecation_note
(
"autoreconnect is deprecated"
,
"in the next version"
);
auto_reconnect
=
lua_tointeger
(
L
,
stack
);
if
(
auto_reconnect
==
RECONNECT_POSSIBLE
)
{
platform_print_deprecation_note
(
"autoreconnect == 1 is deprecated"
,
"in the next version"
);
}
stack
++
;
if
(
auto_reconnect
!=
RECONNECT_OFF
&&
auto_reconnect
!=
RECONNECT_POSSIBLE
){
auto_reconnect
=
RECONNECT_OFF
;
// default to 0
...
...
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