- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In WICED code the list of network that store in DCT is 5 due to the define(CONFIG_AP_LIST_SIZE (5))
I can change this number? to be 50 ?
if I want to store a lot of network what is the recomended way to do this?
Solved! Go to Solution.
- Labels:
-
Community Information
- Tags:
- sdk 6.6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The default AP list is shown in WICED/internal/dct.c and shown below
#define DEFAULT_AP_LIST \
{ \
[0] = \
{ \
.details = {{sizeof(CLIENT_AP_SSID)-1, CLIENT_AP_SSID},{{0,0,0,0,0,0}}, 0, 0, CLIENT_AP_BSS_TYPE, CLIENT_AP_SECURITY, CLIENT_AP_CHANNEL, CLIENT_AP_BAND}, \
.security_key_length = sizeof(CLIENT_AP_PASSPHRASE)-1, \
.security_key = CLIENT_AP_PASSPHRASE\
}, \
DEFAULT_AP_LIST_ENTRY_2 \
}
Likewise the macros CLIENT_AP_2_SSID and CLIENT_AP_2_PASSPHRASE can be defined in wifi_config_dct.h and it will be as shown in that dct.c file. And by default this can be extended up to 5 APs. This number will be limited by the DCT memory block in the flash such that it should not corrupt or deprive the other sections of the flash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The default AP list is shown in WICED/internal/dct.c and shown below
#define DEFAULT_AP_LIST \
{ \
[0] = \
{ \
.details = {{sizeof(CLIENT_AP_SSID)-1, CLIENT_AP_SSID},{{0,0,0,0,0,0}}, 0, 0, CLIENT_AP_BSS_TYPE, CLIENT_AP_SECURITY, CLIENT_AP_CHANNEL, CLIENT_AP_BAND}, \
.security_key_length = sizeof(CLIENT_AP_PASSPHRASE)-1, \
.security_key = CLIENT_AP_PASSPHRASE\
}, \
DEFAULT_AP_LIST_ENTRY_2 \
}
Likewise the macros CLIENT_AP_2_SSID and CLIENT_AP_2_PASSPHRASE can be defined in wifi_config_dct.h and it will be as shown in that dct.c file. And by default this can be extended up to 5 APs. This number will be limited by the DCT memory block in the flash such that it should not corrupt or deprive the other sections of the flash.