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.
This commit is contained in:
parent
9dbae1c963
commit
3e24b1c75b
|
@ -836,6 +836,8 @@ static int wifi_station_config( lua_State* L )
|
|||
}
|
||||
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 );
|
||||
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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue