Curl 命令来scan 没有结果。

toyue
Posts: 9
Joined: Mon May 18, 2015 2:59 pm

Curl 命令来scan 没有结果。

Postby toyue » Thu May 21, 2015 11:07 am

E:\Program\TCPTools>curl -X GET "http://192.168.4.1/client?command=scan
{
"Response":{
"TotalPage":1
}
}
E:\Program\TCPTools>curl -X GET "http://192.168.4.1/client?command=scan&page=1"
{
"successful": false,
"data": null
}

使用串口打印
os_printf("pscaninfo->pbss=%d bss=%d\n",pscaninfo->pbss,STAILQ_FIRST(pscaninfo->pbss));
在函数json_scan_cb里,bss是有数值的。在json_send函数里 ,bss的指针缺是0了。这是什么原因?

reconnect
We have a GET request.
<null>
scandone
user_esp_platform_ap_is_changing
current ap id =0
current_router_id is 0
scandone
pscaninfo->pbss=1073681376 bss=1073695040
webserver's 192.168.4.2:49214 disconnect
reconnect
We have a GET request.
&page=1 HTTP/1.1
User-Agent: curl/7.33.0
Host: 192.168.4.1
Accept: */*


pscaninfo->pbss=1073681376 bss=0
webserver's 192.168.4.2:49217 disconnect
Attachments
scancom.png
scancom.png (23.84 KiB) Viewed 12378 times
scan.png
scan.png (8.58 KiB) Viewed 12378 times

Who is online

Users browsing this forum: No registered users and 26 guests