Commit 3e24b1c7 authored by dnc40085's avatar dnc40085 Committed by Marcel Stör
Browse files

Added deprecation message to wifi.sta.config() for argument style cfg (#1939)

Documentation for the old(argument) style of station configuration was
removed in a previous PR, so I added a deprecation message to inform
developer of the upcoming removal of the feature.
parent 9dbae1c9
...@@ -836,6 +836,8 @@ static int wifi_station_config( lua_State* L ) ...@@ -836,6 +836,8 @@ static int wifi_station_config( lua_State* L )
} }
else //to be deprecated else //to be deprecated
{ {
platform_print_deprecation_note("Argument style station configuration is replaced by table style station configuration", "in the next version");
const char *ssid = luaL_checklstring( L, 1, &sl ); const char *ssid = luaL_checklstring( L, 1, &sl );
luaL_argcheck(L, (sl>=0 && sl<sizeof(sta_conf.ssid)), 1, "length:0-32"); /* Zero-length SSID is valid as a way to clear config */ luaL_argcheck(L, (sl>=0 && sl<sizeof(sta_conf.ssid)), 1, "length:0-32"); /* Zero-length SSID is valid as a way to clear config */
......
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