mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
返回扫描结果
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user