Community news, upcoming events and general discussions
Threads: 35 Posts: 87
Get technical support from the community
Threads: 1392 Posts: 7484
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 35 Posts: 117
Share and discuss community member projects
Threads: 76 Posts: 337
I have been trying to send rest request with xdk. I wanted the device to reconnect to wifi if the connection between router breaks due to any reason (lets say router got reset in between)
The device works fine when booted then once if the wifi is disconnected and turned on externally then it gives the following error:
Package ID: 10 Module ID: 3 Severity code: 2 Error code: 1
My question is do we need to deintitalize any variables first when we are trying to reconnect to wifi?
The error occurs specifically at this line:
rc = PAL_getIpaddress((uint8_t*) "www.postman-echo.com", &destAddr);
You can use WLAN_Reconnect() api in xdk110/Common/source/Connectivity/WLAN.c