Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
546bca00
Commit
546bca00
authored
May 17, 2015
by
dnc40085
Browse files
changed wifi_setip() to allow setting SoftAP gateway to 0.0.0.0
parent
71469dd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
546bca00
...
...
@@ -167,8 +167,8 @@ static int wifi_getmode( lua_State* L )
/**
* wifi.setphymode()
* Description:
* Set wifi physical mode802.11 b/g/n
* Note SoftAP only supports 802.11 b/g.
* Set wifi physical mode
��
802.11 b/g/n
��
* Note
��
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 mode802.11 b/g/n
* Get wifi physical mode
��
802.11 b/g/n
��
* 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment