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
78cb215b
Commit
78cb215b
authored
May 11, 2015
by
dnc40085
Browse files
Changed output format of table that is output by wifi_scan_done
parent
608d5f6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
78cb215b
...
@@ -70,11 +70,13 @@ static void wifi_scan_done(void *arg, STATUS status)
...
@@ -70,11 +70,13 @@ static void wifi_scan_done(void *arg, STATUS status)
{
{
c_memcpy
(
ssid
,
bss_link
->
ssid
,
32
);
c_memcpy
(
ssid
,
bss_link
->
ssid
,
32
);
}
}
c_sprintf
(
temp
,
"%d,%d,"
MACSTR
",%d"
,
bss_link
->
authmode
,
bss_link
->
rssi
,
// c_sprintf(temp,"%d,%d,"MACSTR",%d", bss_link->authmode, bss_link->rssi,
MAC2STR
(
bss_link
->
bssid
),
bss_link
->
channel
);
// MAC2STR(bss_link->bssid),bss_link->channel);
c_sprintf
(
temp
,
"%s,%d,%d,%d"
,
ssid
,
bss_link
->
rssi
,
bss_link
->
authmode
,
bss_link
->
channel
);
lua_pushstring
(
gL
,
temp
);
lua_pushstring
(
gL
,
temp
);
lua_setfield
(
gL
,
-
2
,
ssid
);
c_sprintf
(
temp
,
MACSTR
,
MAC2STR
(
bss_link
->
bssid
));
lua_setfield
(
gL
,
-
2
,
temp
);
// NODE_DBG(temp);
// NODE_DBG(temp);
...
...
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