To enable Access Point, I have the following code in init();
WifiAccessPoint.enable(true);
WifiAccessPoint.config("TestAP", "", AUTH_OPEN);
However, I do not want to do this during initialization stage. I want to do this when the state machine goes into a AP state. When I run the code outside of init(), ESP8266 does not become an AP.
Not sure if it is a SMING bug or just my fault. Did someone else encounter the same problem?