From d2eb6a3c7dc88c73763e7c4a4adfc8ff9a382e3b Mon Sep 17 00:00:00 2001 From: zogodo <742782908@qq.com> Date: Sun, 29 Sep 2019 21:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=89=AB=E6=8F=8F=E7=BB=93?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/http_server/app_httpd.c | 14 +++++++++++++- TC1/http_server/app_httpd.h | 2 +- TC1/http_server/index.html | 3 ++- TC1/http_server/web_data.c | 2 +- TC1/user_wifi.c | 33 +++++++++++++++++++++++++++++---- TC1/user_wifi.h | 20 +++++++++++++++++++- 6 files changed, 65 insertions(+), 9 deletions(-) diff --git a/TC1/http_server/app_httpd.c b/TC1/http_server/app_httpd.c index 9d1b6de..ce68757 100644 --- a/TC1/http_server/app_httpd.c +++ b/TC1/http_server/app_httpd.c @@ -148,10 +148,22 @@ exit: static int http_get_wifi_scan(httpd_request_t *req) { - static int n = 1; OSStatus err = kNoErr; + if (scaned) + { + scaned = false; + send_http(wifi_ret, strlen(wifi_ret), exit, &err); + } + else + { + send_http("NO", 2, exit, &err); + } + + /* + static int n = 1; char* re = (n++)%4 == 0 ? "OK" : "NO"; send_http(re, 2, exit, &err); + */ exit: return err; } diff --git a/TC1/http_server/app_httpd.h b/TC1/http_server/app_httpd.h index 879bce6..3371b91 100644 --- a/TC1/http_server/app_httpd.h +++ b/TC1/http_server/app_httpd.h @@ -43,7 +43,7 @@ *(P_ERR) = httpd_send_body(req->sock, (const unsigned char*)DATA, LEN); \ require_noerr_action(*(P_ERR), LABEL, app_httpd_log("ERROR: Unable to send http DATA body.")); \ -#define TC1_STATUS_JSON \ +#define TC1_STATUS_JSON \ "{\ 'sockets':'%s',\ 'mode':%d,\ diff --git a/TC1/http_server/index.html b/TC1/http_server/index.html index 066c79d..a051d52 100644 --- a/TC1/http_server/index.html +++ b/TC1/http_server/index.html @@ -333,7 +333,8 @@ function Rescan() { function GetScanResult() { HttpGet("/wifi/scan", function (re) { - if (re == "OK") { + if (re != "NO") { + var ret = JSON.parse(re); rescan_btn.innerHTML = "Rescan"; rescan_btn.disabled = false; return; diff --git a/TC1/http_server/web_data.c b/TC1/http_server/web_data.c index 572118d..134427b 100644 --- a/TC1/http_server/web_data.c +++ b/TC1/http_server/web_data.c @@ -1 +1 @@ -const unsigned char index_html[0xa26] = {0x1f,0x8b,0x08,0x00,0x38,0x6a,0x8f,0x5d,0x02,0xff,0xed,0x5a,0xdd,0x6e,0xe3,0xb8,0x15,0xbe,0x1f,0x60,0xde,0x41,0xab,0xc1,0x4e,0x1c,0xc4,0xb6,0x64,0xc7,0x76,0xb2,0x4e,0x9c,0x62,0x36,0x33,0x98,0x49,0x67,0x33,0x09,0x36,0x06,0xa6,0x45,0x51,0x18,0xb4,0x44,0x3b,0xda,0xc8,0x92,0x56,0xa2,0xe3,0x04,0x41,0x9e,0xa1,0xcf,0xd0,0xbb,0x3e,0x44,0x5f,0xa7,0x7d,0x8e,0x9e,0x43,0x8a,0x14,0x25,0xcb,0x8e,0x13,0x2b,0xd8,0x9b,0x26,0x17,0xb6,0xc8,0xf3,0xf3,0xf1,0xf0,0xfc,0x91,0xf2,0xf1,0x0f,0x1f,0x2f,0x4e,0x87,0x7f,0xbd,0xfc,0x64,0x5c,0xb3,0x99,0x7f,0xf2,0xf6,0xcd,0xb1,0xfa,0xa4,0xc4,0x85,0x4f,0x03,0xfe,0x8e,0x67,0x94,0x11,0x20,0x60,0x51,0x83,0xfe,0x3e,0xf7,0x6e,0x07,0xa6,0x13,0x06,0x8c,0x06,0xac,0xc1,0xee,0x23,0x6a,0x1a,0xe9,0xd3,0xc0,0x64,0xf4,0x8e,0x59,0x28,0x00,0xc6,0xae,0x49,0x9c,0x50,0x18,0x9b,0xb3,0x49,0xe3,0xd0,0xcc,0x49,0x52,0xf4,0x0b,0xcf,0x65,0xd7,0x03,0x97,0xde,0x7a,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30,0x3c,0xbb,0xf8,0xf6,0x47,0x5f,0xd5,0xf0,0xb1,0x34,0xb9,0xfe,0x21,0xd7,0x35,0xe2,0xb5,0x44,0x31,0xdd,0x9f,0xa6,0x6f,0x2b,0xca,0xaf,0x6c,0x5e,0x92,0xee,0xcf,0x2e,0x9f,0x70,0x4b,0x7c,0xb7,0x22,0xf6,0xda,0x8b,0xb0,0x74,0x6d,0x1d,0x09,0x24,0xb9,0xd9,0x58,0xe5,0x0c,0x88,0xab,0x50,0xfa,0x99,0x30,0xba,0x20,0xf7,0x1b,0xeb,0x9d,0x0a,0xfa,0x75,0xaa,0x33,0x8f,0x2b,0xee,0x65,0xe2,0xc4,0x5e,0xc4,0xf4,0x77,0x89,0xbf,0x91,0x5b,0x22,0x46,0x4d,0x4e,0x32,0x99,0x07,0x0e,0x2f,0x28,0x1f,0x7e,0x23,0x77,0xb5,0x79,0xec,0xd7,0xc1,0xf5,0x52,0x97,0xa9,0x73,0xc6,0xba,0xe1,0x12,0x46,0x76,0x8d,0x07,0xa1,0xec,0x96,0xc4,0xc6,0xdd,0xcc,0x1f,0xe1,0x6b,0x57,0x63,0x60,0x04,0x74,0x61,0xfc,0xe5,0xfc,0x97,0x2f,0xf0,0xf4,0x2b,0xfd,0x7d,0x4e,0x13,0x56,0xdb,0x3d,0x12,0x94,0x92,0xaa,0x19,0x46,0x34,0xa8,0x09,0x51,0x5c,0x01,0x8b,0xe7,0x74,0x89,0x08,0x30,0xa7,0x02,0xbe,0x50,0xe2,0xd2,0xb8,0x66,0x9e,0xea,0x2f,0x73,0xeb,0x86,0x49,0xa2,0x08,0x42,0x82,0x20,0x5a,0xeb,0xae,0xb1,0x58,0x2c,0x1a,0x10,0xad,0xb3,0x06,0x88,0xa4,0x81,0x03,0x21,0xeb,0x9a,0xcb,0x9a,0x83,0x18,0x84,0xdd,0x63,0x30,0x50,0x91,0x0a,0x00,0xb2,0x5a,0x72,0x4d,0x2d,0x8a,0xbf,0x21,0x9d,0x18,0x35,0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a,0xe0,0xfc,0x35,0xcc,0xca,0x05,0xae,0x02,0xc7,0xbb,0x53,0x12,0x93,0x59,0xc2,0xd3,0x6c,0x82,0x47,0xfb,0x3d,0x1d,0xf1,0x9e,0xf9,0xfe,0x86,0xde,0x6b,0x83,0x9a,0xfd,0x0b,0xd9,0x09,0x7b,0x64,0x4b,0x5c,0xb3,0xaf,0x4b,0x51,0xd9,0x79,0x30,0x6b,0x6b,0xd2,0x5c,0x25,0x90,0xec,0xae,0x5a,0xac,0xbc,0xfb,0x95,0xd2,0x8a,0xba,0x79,0x57,0xbf,0x46,0x33,0xe6,0x9b,0x58,0x9c,0x11,0xa1,0x64,0x2d,0x81,0xd2,0x9c,0x3c,0x57,0x4b,0xae,0x60,0x34,0xc8,0x0a,0xca,0x0a,0x96,0xd5,0x29,0x03,0xff,0x16,0x5e,0xe0,0x86,0x0b,0xbc,0x4d,0x18,0x7a,0x33,0x1a,0x82,0x43,0x42,0xf3,0x89,0x82,0x61,0x4d,0x73,0x9f,0xd5,0x8d,0x96,0x6d,0xdb,0x39,0x6b,0x94,0x9e,0xa5,0x4b,0xed,0x96,0x5a,0x6b,0x39,0xbd,0xe7,0x54,0xe4,0xcd,0x26,0x5a,0xdf,0xd7,0xb4,0x9a,0xd8,0xac,0xcd,0x0c,0x56,0x4c,0x12,0x82,0x52,0xab,0x14,0x85,0xdb,0x80,0x67,0x59,0x33,0x33,0xcc,0xb1,0x25,0xae,0x98,0xf8,0x8d,0x94,0xfc,0x6d,0xac,0x95,0xfe,0x82,0xff,0x7f,0x79,0xf2,0x4a,0x29,0xdb,0x2f,0x00,0x00}; +const unsigned char index_html[0xa36] = {0x1f,0x8b,0x08,0x00,0xae,0xb5,0x90,0x5d,0x02,0xff,0xed,0x5a,0xdd,0x6e,0xe3,0xb8,0x15,0xbe,0x1f,0x60,0xde,0x41,0xab,0xc1,0x4e,0x1c,0xc4,0xb6,0x64,0xc7,0x76,0xb2,0x4e,0x9c,0x62,0x36,0x33,0x98,0x49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x16,0x2f,0xca,0x3b,0x04,0x96,0x9b,0xb5,0x2a,0xb0,0x1c,0xe5,0x38,0xd2,0x42,0xb1,0x8e,0x49,0xd6,0x92,0x0c,0x19,0xff,0xdd,0xc4,0xc0,0x68,0xb4,0x52,0x49,0x24,0x1a,0x61,0x03,0x05,0x43,0xa6,0x99,0x0d,0xa1,0xc9,0xf4,0x21,0x74,0x42,0x08,0xa7,0x25,0x52,0x39,0xae,0xd3,0xcb,0x08,0x36,0x2d,0xe1,0xba,0x10,0x42,0x59,0x02,0x8e,0xa9,0x0a,0x3a,0xcb,0x8a,0xb9,0xac,0x87,0x1d,0xe1,0x8b,0xc9,0x4e,0x7f,0xe7,0xc7,0x64,0xa7,0xbe,0x83,0x10,0x77,0xfa,0x3f,0xba,0xf5,0x1d,0x29,0x1e,0xb7,0x5c,0xce,0x2a,0x95,0x0b,0x35,0x04,0x80,0x75,0x0a,0xc4,0x2f,0x27,0x1f,0xcd,0xac,0x88,0xc9,0xac,0x6d,0xfc,0xf9,0xea,0xe2,0x5b,0x33,0xc2,0x9f,0x05,0x21,0x9e,0xa3,0x22,0xc5,0x88,0xc4,0x31,0x46,0x08,0x7f,0x48,0x7f,0x76,0x02,0x9f,0x50,0x8b,0x60,0x51,0x75,0x55,0x73,0xa0,0x16,0x19,0x35,0xbe,0x19,0x40,0x6c,0x1f,0xc1,0xc7,0xb1,0x26,0xa0,0x09,0x35,0x6a,0xca,0xae,0x61,0x78,0x6f,0x2f,0x97,0x31,0x55,0x10,0xfe,0xcd,0xfb,0x7b,0x93,0x3f,0x50,0x57,0x69,0x43,0x4e,0x18,0xe7,0xc9,0xb6,0x65,0x6a,0x49,0xbb,0xb0,0x01,0x12,0x9b,0x66,0x9f,0x12,0xe2,0x74,0x57,0x0a,0xc4,0x60,0x1b,0x8d,0x36,0xdb,0xff,0x94,0x2c,0x35,0x66,0x9e,0x24,0x2f,0x49,0x18,0x58,0xa3,0xb0,0xac,0xd4,0xad,0x52,0x02,0x7c,0xd2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d5,0x29,0x03,0xff,0x16,0x5e,0xe0,0x86,0x0b,0xbc,0x4d,0x18,0x7a,0x33,0x1a,0x82,0x43,0x42,0xf3,0x89,0x82,0x61,0x4d,0x73,0x9f,0xd5,0x8d,0x96,0x6d,0xdb,0x39,0x6b,0x94,0x9e,0xa5,0x4b,0xed,0x96,0x5a,0x6b,0x39,0xbd,0xe7,0x54,0xe4,0xcd,0x26,0x5a,0xdf,0xe7,0x58,0x0d,0x93,0xfe,0xb7,0x8b,0x65,0xab,0x89,0x63,0x17,0x5b,0xd5,0xb0,0x3e,0x65,0x5c,0xb1,0xa7,0x9b,0xd9,0xb5,0x98,0x4b,0x04,0xa5,0x56,0x50,0x0a,0x97,0x06,0xcf,0x32,0x7a,0x66,0xbf,0x63,0x4b,0xdc,0x44,0xf1,0x8b,0x2b,0xf9,0x13,0x5a,0x2b,0xfd,0xa1,0xff,0xff,0x00,0x4e,0x2c,0xbf,0x88,0x02,0x30,0x00,0x00}; diff --git a/TC1/user_wifi.c b/TC1/user_wifi.c index 45d03e1..c7c51e1 100644 --- a/TC1/user_wifi.c +++ b/TC1/user_wifi.c @@ -73,10 +73,35 @@ static void wifi_status_callback(WiFiEvent status, void* arg) } } +bool scaned = false; +char* wifi_ret = NULL; //wifi扫描结果回调 -void wifi_scan_callback(ScanResult *pApList, mico_Context_t * const inContext) +void wifi_scan_callback(ScanResult_adv* scan_ret, void* arg) { - os_log("wifi_scan_callback ApNum[%d] ApList[0](%s)", (int)pApList[0].ApNum, pApList[0].ApList[0].ssid); + int count = (int)scan_ret->ApNum; + os_log("wifi_scan_callback ApNum[%d] ApList[0](%s)", count, scan_ret->ApList[0].ssid); + + int i = 0; + wifi_ret = malloc(sizeof(char)*count * (32 + 2) + 50); + char* ssids = malloc(sizeof(char)*count * 32); + char* secs = malloc(sizeof(char)*count * 2); + char* tmp1 = ssids; + char* tmp2 = secs; + for (; i < count; i++) + { + sprintf(tmp1, "'%s',", scan_ret->ApList[i].ssid); + tmp1 += (strlen(scan_ret->ApList[i].ssid) + 3); + + sprintf(tmp2, "%d,", scan_ret->ApList[i].security); + tmp2 += 2; + } + *(--tmp1) = 0; + *(--tmp2) = 0; + + sprintf(wifi_ret, WIFI_SCAN_RESULT_JSON, 1, ssids, secs); + + scaned = true; + free(ssids); } @@ -141,8 +166,8 @@ void wifi_init(void) //wifi连接状态改变回调 mico_system_notify_register(mico_notify_WIFI_STATUS_CHANGED, (void*) wifi_status_callback, NULL); //wifi扫描结果回调 - mico_system_notify_register(mico_notify_WIFI_SCAN_COMPLETED, (void*)wifi_scan_callback, NULL); - + mico_system_notify_register(mico_notify_WIFI_SCAN_ADV_COMPLETED, (void*)wifi_scan_callback, NULL); + //sntp_init(); //启动定时器开始进行wifi连接 if (!mico_rtos_is_timer_running(&wifi_led_timer)) mico_rtos_start_timer(&wifi_led_timer); diff --git a/TC1/user_wifi.h b/TC1/user_wifi.h index 51a4431..6d9f183 100644 --- a/TC1/user_wifi.h +++ b/TC1/user_wifi.h @@ -2,16 +2,34 @@ #define __USER_WIFI_H_ #include "mico.h" +#include "mico_wlan.h" #include "micokit_ext.h" -enum { +enum +{ WIFI_STATE_FAIL, WIFI_STATE_NOCONNECT, WIFI_STATE_CONNECTING, WIFI_STATE_CONNECTED, }; +/* +typedef struct _WifiResult +{ + char ssid[32]; + wlan_sec_type_t security; +} +WifiResult; +*/ + +#define WIFI_SCAN_RESULT_JSON "{'success':%d,'ssids':[%s],'secs':[%s]}" + +extern char* wifi_ret; + extern char wifi_status; +extern bool scaned; +//extern WifiResult* wifi_rets; + extern void wifi_init(void); extern void ap_init(void); extern void wifi_connect(char* wifi_ssid, char* wifi_key);