After that it seems like the gpio high/low works (the LED works as intended) but there is no longer any wifi. No SSID no nothing.. And the unit is extremely hard to connect to, generally the only solution is to flash the firmware again. Then the SSID works fine again. Until I add the code below.
I have no clue what is going on here. Any input appreciated, I am very new to this..
I am only trying to at lowest possible power usage show an SSID, blink a LED and then shut it down after a minute (with a external latching relay or dsleep)
---
wifi.setmode(wifi.SOFTAP)
wifi.PHYMODE_G
wifi.ap.config({ssid="MySSID",pwd="password"})
gpio.mode(1,gpio.OUTPUT)
gpio.write(1,gpio.HIGH)
tmr.delay(100000000)
gpio.write(1,gpio.LOW)
tmr.delay(1000000)