mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
Merge pull request #402 from trilader/dev
Allow connecting to unsecured WiFi networks
This commit is contained in:
commit
a14971fa5b
@ -328,8 +328,8 @@ static int wifi_station_config( lua_State* L )
|
||||
if (sl>32 || ssid == NULL)
|
||||
return luaL_error( L, "ssid:<32" );
|
||||
const char *password = luaL_checklstring( L, 2, &pl );
|
||||
if (pl<8 || pl>64 || password == NULL)
|
||||
return luaL_error( L, "pwd:8~64" );
|
||||
if (pl!=0 && (pl<8 || pl>64) || password == NULL)
|
||||
return luaL_error( L, "pwd:0,8~64" );
|
||||
|
||||
c_memset(sta_conf.ssid, 0, 32);
|
||||
c_memset(sta_conf.password, 0, 64);
|
||||
|
Loading…
x
Reference in New Issue
Block a user