From 78cb215bb2eb1ce6dd243adcdb8864486cdbf213 Mon Sep 17 00:00:00 2001 From: dnc40085 Date: Mon, 11 May 2015 18:26:16 -0700 Subject: [PATCH] Changed output format of table that is output by wifi_scan_done --- app/modules/wifi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/modules/wifi.c b/app/modules/wifi.c index 03757017..722f07bf 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -70,11 +70,13 @@ static void wifi_scan_done(void *arg, STATUS status) { c_memcpy(ssid, bss_link->ssid, 32); } - c_sprintf(temp,"%d,%d,"MACSTR",%d", bss_link->authmode, bss_link->rssi, - MAC2STR(bss_link->bssid),bss_link->channel); +// c_sprintf(temp,"%d,%d,"MACSTR",%d", bss_link->authmode, bss_link->rssi, +// 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_setfield( gL, -2, ssid ); + c_sprintf(temp,MACSTR, MAC2STR(bss_link->bssid)); + lua_setfield( gL, -2, temp); // NODE_DBG(temp);