Commit b645100d authored by Marcel Stör's avatar Marcel Stör
Browse files

Add autoconnect deprecation warning to MQTT code

parent 66ffa6cd
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment