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
b645100d
Commit
b645100d
authored
Apr 04, 2017
by
Marcel Stör
Browse files
Add autoconnect deprecation warning to MQTT code
parent
66ffa6cd
Changes
1
Show whitespace changes
Inline
Side-by-side
app/modules/mqtt.c
View file @
b645100d
...
@@ -1073,6 +1073,9 @@ static int mqtt_socket_connect( lua_State* L )
...
@@ -1073,6 +1073,9 @@ static int mqtt_socket_connect( lua_State* L )
if
(
(
stack
<=
top
)
&&
lua_isnumber
(
L
,
stack
)
)
if
(
(
stack
<=
top
)
&&
lua_isnumber
(
L
,
stack
)
)
{
{
auto_reconnect
=
lua_tointeger
(
L
,
stack
);
auto_reconnect
=
lua_tointeger
(
L
,
stack
);
if
(
auto_reconnect
==
RECONNECT_POSSIBLE
)
{
platform_print_deprecation_note
(
"autoreconnect == 1 is deprecated"
,
"in the next version"
);
}
stack
++
;
stack
++
;
if
(
auto_reconnect
!=
RECONNECT_OFF
&&
auto_reconnect
!=
RECONNECT_POSSIBLE
){
if
(
auto_reconnect
!=
RECONNECT_OFF
&&
auto_reconnect
!=
RECONNECT_POSSIBLE
){
auto_reconnect
=
RECONNECT_OFF
;
// default to 0
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