Report Bugs Here

Moderator: Mmiscool

User avatar
By heckler
#39409 There seems to be an issue with some part of this code...
Code: Select allbutton "Exit" [Exit]
wprint "<br>"
button "Set All" [setcolor]
button "All Off" [alloff]
button "Set One" [setone]
wprint "<br>"
listbox "0,1,2,3,4,5,6,7" pix
wprint "<br>"
slider rd 0 255
slider gn 0 255
slider bu 0 255
wprint "<br>"
wait
[setcolor]
serialprintln ramfree()
serialprintln flashfree()
serialprintln ip()
serialprint rd
serialprint gn
serialprintln bu
serialprintln " "
neostripcolor(0,7,rd,gn,bu)
wait
'
[alloff]
neocls()
wait
'
[setone]
neo(pix,rd,gn,bu)
wait
'
[exit]
end


The first thing I notice when I run it on an "nodemcu" module with espbasic 1.77 is that the Exit button does not seem to work. Normally I monitor the module/code by opening a Putty serial terminal window.
Usually when I click on Exit in a program the module will print "done" in the serial window and the code will have stopped running.

With this code the Exit button does not seem to work.
I noticed the same thing with the code from the FM Radio forum post. Here...
http://www.esp8266.com/viewtopic.php?f=41&t=7648

Can others confirm if the exit button works for them?
Could it be related to the "slider" as both code examples have one or more sliders.

Note: it is easy/possible to test code even if you don't have the associated hardware circuitry as long as the code is not expecting input from said hardware.

stumped
dwight
User avatar
By heckler
#39428 luc VdV,

Sheesh, I can't believe I missed that!
Your right without any feedback from the IDE we have to be more careful in looking for simple typos, etc.

I am so used to working with my other favorite BASIC which is PICBASIC by melabs.com (very high quality and very fast tight code for the Microchip PIC's) where the IDE does give all sorts of feedback.

I understand, though, that this espbasic needs to be small and light for the little -01 (512K) modules.
I'll just have to pay better attention to detail.

Thanks for helping me out!

dwight
User avatar
By heckler
#39430 The Exit button is working now but I'd like to continue on with some of the problems I am having...

After I exit the program (and see the "Done..." in the serial window
then I go back to the 192.168.4.1 web address and am properly presented with the IDE window.
If I go to the EDIT tab and try and read out the current code in the module by clicking on the OPEN button (with the file name text box empty, which usually gives me the "Default" code) the web page (chrome) times out in about 4-5 seconds.

If I use firefox browser I get a "connection was reset" message.

Is anyone else having a problem reading out their current code in the module by trying to use the "OPEN" button??

thanks
dwight