Commit 43d06459 authored by Vowstar's avatar Vowstar
Browse files

Merge pull request #409 from dnc40085/dev096-wifi_scan_done

Change format of table that is output by wifi_scan_done function
parents 60e1e8ba 39419775
...@@ -71,11 +71,11 @@ static void wifi_scan_done(void *arg, STATUS status) ...@@ -71,11 +71,11 @@ 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,"%s,%d,%d,%d", ssid, bss_link->rssi, bss_link->authmode, bss_link->channel);
MAC2STR(bss_link->bssid),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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment