- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I set up my target ssid and password in the DCT then called wiced_network_up. Since my target ssid won't be up 100% during my application. I saw the wiced_network_up tried to join the target ssid three times and then declared the "failed to join : target ssid"
I would like to have it keep try to connect to the ssid, instead of stooping after only 3 tries. How could I achieve this?
In other API I used before, I can set the something like wifi,config,auto_connection to true. then the wifi API will keep trying to connect to the ssid provided. Is there anything similar in wiced?
Solved! Go to Solution.
- Labels:
-
Wifi+Bluetooth
- Tags:
- wifi command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wenchao.xi_3635386 wrote:
I would like to have it keep try to connect to the ssid, instead of stooping after only 3 tries. How could I achieve this?
Use a while loop to keep calling wiced_network_up() until it returns success.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found in the depth of API, it has this marco
* WICED Join Options */
#define WICED_JOIN_RETRY_ATTEMPTS (3)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use the wwd_wifi_join_specific or wwd_wifi_join API if you want to bypass the retries option available in the wiced_network_up API. Please find the API declaration and definition as located in 43xxx_Wi-Fi/WICED/WWD/include/wwd_wifi.h and 43xxx_Wi-Fi/WICED/WWD/internal/wwd_wifi.c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wenchao.xi_3635386 wrote:
I would like to have it keep try to connect to the ssid, instead of stooping after only 3 tries. How could I achieve this?
Use a while loop to keep calling wiced_network_up() until it returns success.