If you are asking a question, please follow this template:
My goal is: [describe your goal]
to be able to switch from ATS mode to AP mode and back again programmatically.
My actions are: [describe your actions - code, commands, etc]
Cfg.set(‘wifi.ap.enable’, true); // Enable AP mode
Cfg.set(‘wifi.sta.enable’, false); // Disable STA mode
let staDisconnect = ffi(‘bool mgos_wifi_dev_sta_disconnect(void)’);
The result I see is: [show the result - log, etc]
wifi is disconnected
then it starts back up again.
Note: connected and PUB/SUBing to AWS at the time.
My expectation & question is: [describe your expectation and your question]
I expect to be able to stop the STA mode and have AP mode enabled and running and also to be able to do the reverse.