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
f9e0e0cc
Commit
f9e0e0cc
authored
May 09, 2015
by
dnc40085
Browse files
Added examples to description of wifi.sta.config()
parent
e667b202
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
f9e0e0cc
...
@@ -418,6 +418,26 @@ static int wifi_station_getconfig( lua_State* L )
...
@@ -418,6 +418,26 @@ static int wifi_station_getconfig( lua_State* L )
* bssid: MAC address of Access Point you would like to connect to.
* bssid: MAC address of Access Point you would like to connect to.
* Returns:
* Returns:
* Nothing.
* Nothing.
*
* Example:
--Connect to Access Point automatically when in range
wifi.sta.getconfig("myssid", "password")
--Connect to Access Point, User decides when to connect/disconnect to/from AP
wifi.sta.getconfig("myssid", "mypassword", 0)
wifi.sta.connect()
--do some wifi stuff
wifi.sta.disconnect()
--Connect to specific Access Point automatically when in range
wifi.sta.getconfig("myssid", "mypassword", "12:34:56:78:90:12")
--Connect to specific Access Point, User decides when to connect/disconnect to/from AP
wifi.sta.getconfig("myssid", "mypassword", 0)
wifi.sta.connect()
--do some wifi stuff
wifi.sta.disconnect()
*
*/
*/
static
int
wifi_station_config
(
lua_State
*
L
)
static
int
wifi_station_config
(
lua_State
*
L
)
{
{
...
...
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