Moderator: Mmiscool
could you post the code you have tested.
Before most any of the webpage items can function your code must end in a "wait" statement.
This allows the processor to monitor the web page and interact if someone clicks a button.
this code should work as a simple test
regards
dwight
memclear
cls
button "GetTime", [GetTime]
button "Exit ", [Exit]
wait
[GetTime]
print time()
wait
[Exit]
end
Once the interpreter has suffered any sort of 'hit' (eg: from the 'Save' bug) then the only way to be sure it isn't corrupt is to reFormat it (run as Admin) then reFlash it.
Copy and paste anything of value first (and check for odd corrupt chars).
Obviously make sure you are not flashing a larger build to a smaller physical device.
The whole process takes less than 5 minutes so it's not the end of the world.
As far as I know esp-basic still has a 10 chr var and branch name limit, so I recommend reducing "[getMeOutOfHere]" (plus all references to it) to less than 10 chrs to eliminate that as a possible cause of problems.
You can test for just correct button operation using this minimal example:
button "quit", [quit]
wait
[quit]
print "Quit"
end
I will try to flash the esps with firmware, but with the flasher I can't use the format the flash function. That hasn't worked on my computer since version 2.