After join AP successfully with
I want to leave and join with another AP by calling
But i alway get error = 4 as return code. The error message is "Could not delete IP instance" so this is where i got the error code return in wiced_ip_down function
I want to know that how can i leave and join another AP in proper way?
I use CYW54907 with Wiced studio 6.6.
Solved! Go to Solution.
Hi @hoainguyen265 ,
We had tested wiced_network_down() but this error could not be reproduced. Create a simple project with the following statements:
wiced_network_up(WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL);
printf("Result of wiced_network_down() is %d\n",result);
Check the result of wiced_network_down().
Rakesh B G
Thanks for your reply @Rakesh_BG ,
Yes, in normal condition that we just connect to the AP and do nothing, everything will be ok.
In my case, if wifi disconnected with the AP when i still have a http connection or mqtt client, .. that still remain the "IP HANDLE", i can't call the ip down success. So my solution here is deinit/free all that instances and call the ip down. Could you double check that my solution is a proper way?