Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
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