WiFiController was written in a short time and is running into the mud. If the WiFi is on and connected to an AP, for example, then turning on AP mode corrupts the WiFi state.
There are underlying state transitions that are not taken account of and it needs an extensive re-think.
Suggestion: use the classes WiFiRadio and WiFiApControl from Serval (https://github.com/servalproject/batphone). The latter can be used as-is. The former will need some adaptation but seems to be reasonably mature.
WiFiController was written in a short time and is running into the mud. If the WiFi is on and connected to an AP, for example, then turning on AP mode corrupts the WiFi state.
There are underlying state transitions that are not taken account of and it needs an extensive re-think.
Suggestion: use the classes WiFiRadio and WiFiApControl from Serval (https://github.com/servalproject/batphone). The latter can be used as-is. The former will need some adaptation but seems to be reasonably mature.