mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
Merge pull request #431 from dnc40085/dev096-wifi.ap.setip_fix
changed wifi_setip() to allow setting SoftAP gateway to 0.0.0.0
This commit is contained in:
commit
03761b8601
@ -167,8 +167,8 @@ static int wifi_getmode( lua_State* L )
|
||||
/**
|
||||
* wifi.setphymode()
|
||||
* Description:
|
||||
* Set wifi physical mode<EFBFBD><EFBFBD>802.11 b/g/n<EFBFBD><EFBFBD>
|
||||
* Note<EFBFBD><EFBFBD> SoftAP only supports 802.11 b/g.
|
||||
* Set wifi physical mode<EFBFBD><EFBFBD>802.11 b/g/n<EFBFBD><EFBFBD>
|
||||
* Note<EFBFBD><EFBFBD> SoftAP only supports 802.11 b/g.
|
||||
* Syntax:
|
||||
* wifi.setphymode(mode)
|
||||
* Parameters:
|
||||
@ -197,7 +197,7 @@ static int wifi_setphymode( lua_State* L )
|
||||
/**
|
||||
* wifi.getphymode()
|
||||
* Description:
|
||||
* Get wifi physical mode<EFBFBD><EFBFBD>802.11 b/g/n<EFBFBD><EFBFBD>
|
||||
* Get wifi physical mode<EFBFBD><EFBFBD>802.11 b/g/n<EFBFBD><EFBFBD>
|
||||
* Syntax:
|
||||
* wifi.getphymode()
|
||||
* Parameters:
|
||||
@ -312,7 +312,7 @@ static int wifi_setip( lua_State* L, uint8_t mode )
|
||||
pTempIp.netmask.addr = ip;
|
||||
|
||||
ip = parse_key(L, "gateway");
|
||||
if(ip!=0)
|
||||
if(mode==SOFTAP_IF || ip!=0)
|
||||
pTempIp.gw.addr = ip;
|
||||
|
||||
if(STATION_IF == mode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user