Hi @Alexandr, the link in post #1 and the title at the destination indicate a D1 Mini, but a true mini only has 16 pins, not 30!
I see that you are a long time user of the ESP8266. As both errors occur inside the onInit, as a wild guess, it might be that stopping an AP before it is even created is causing the error. Has an attempt to place the internal code inside a try/catch block been attempted to see if any errors are bubbling up and not being caught?
Until others are able to respond, take a look at some running code snippet examples that might give some insight:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Mon 2020.04.06
Hi @Alexandr, the link in post #1 and the title at the destination indicate a D1 Mini, but a true mini only has 16 pins, not 30!
I see that you are a long time user of the ESP8266. As both errors occur inside the onInit, as a wild guess, it might be that stopping an AP before it is even created is causing the error. Has an attempt to place the internal code inside a try/catch block been attempted to see if any errors are bubbling up and not being caught?
Until others are able to respond, take a look at some running code snippet examples that might give some insight:
Posting snippet results of what does work, may provide some clues also.
Also take a look at support options for NodeMCU: