Hello.
I want to start WiFi as AP with a specific SSID.
My SSID has to be "MyProduct_SNXXXX" where "XXXX" is the serial number of my product
and has to be stored in some non volatile memory (FLASH, EEPROM, uSD).
Using "wifi_config_dct.h" macro is not a good idea.
Solved! Go to Solution.
Take a look at /43xxx_Wi-Fi/apps/snip/dct_read_write
You can start your application, then set the serial number of whatever that is needed in the WIFI DCT section and then start the AP.
This should solve the requirement that is needed.
Take a look at /43xxx_Wi-Fi/apps/snip/dct_read_write
You can start your application, then set the serial number of whatever that is needed in the WIFI DCT section and then start the AP.
This should solve the requirement that is needed.
OK, it's a good solution,
but If I want to start AP with a SSID defined run-time ?
For example, I want to save the serial number in DCT but I want to build SSID from this serial number, for example in this way
int sn = read_sn_from_dct();
char ssid[10];
sprintf(ssid, "MyProduct_SN%d",sn);
/* start AP */
The same approach can be employed right? Have some ssid during build which you can overwrite in the DCT during runtime.
OK, I understand ... I can write in DCT the new SSID
int sn = read_sn_from_dct();
char ssid[10];
sprintf(ssid, "MyProduct_SN%d",sn);
write_new_ssid ( );
start_AP ( );
OK, I found
wiced_result_t wiced_network_set_hostname | ( | const char * | name | ) |