|
//router status
if(lastStatus.types.con_route != status->ststus.types.con_route)
{
lastStatus.types.con_route = status->ststus.types.con_route;
if(1 == status->ststus.types.con_route)
{
gizwitsProtocol.wifiStatusEvent.event[gizwitsProtocol.wifiStatusEvent.num] = WIFI_CON_ROUTER;
gizwitsProtocol.wifiStatusEvent.num++;
//GIZWITS_LOG("WiFi status: connected router\n");
}
else
{
gizwitsProtocol.wifiStatusEvent.event[gizwitsProtocol.wifiStatusEvent.num] = WIFI_DISCON_ROUTER;
gizwitsProtocol.wifiStatusEvent.num++;
//GIZWITS_LOG("WiFi status: disconnected router\n");
}
}
是不是这个代码就是判断esp8266有没有联网的?
|
|