WiFi.StartAccessPoint starts an access point, but there's no method to stop/disable an access point once started, if possible please add a method to do so.
It's easy enough to stop by writing a variable into EEProm and then soft restarting the ESP8266, True runs WiFi.StartAccessPoint, False does not.
Actually I must also apologise for not checking the internet first for the answer and just using inline C. The answer you gave is all over the internet with people asking basically the same question, so sorry about that.
BTW the following line also works, both solutions appear to do exactly what i was looking to do.
B4X:
#if C
void StopAP(B4R::Object* o) {
WiFi.softAPdisconnect(true);
}#end if