How to reliable get into AP mode when pushing reset button( snip.config_mode example)

Solved
pihlung's picture
pihlung
Junior(2)

In the snip.config_mode application, you only enter AP mode the first time after downloading the program, following resets of board bypass the AP mode and just connect to wifi LAN. 

What changes do I need to make to get it into AP mode every time I push the reset button?

Thanks

ps. Push reset and hold user button down at the same time for 5 sec seem to once delete the WIFI settings in DCT and it entered AP mode again during upstart. But its seem to be a lucky shoot, all following attemps it just jumped to join the WIFI LAN, 

 

pihlung's picture
pihlung
Junior(2)

Is there an easy API to change the DCT device_configured value?

 

pihlung's picture
pihlung
Junior(2)

solution:

wiced_dct_write(0,DCT_WIFI_CONFIG_SECTION,0,1);