Current News

Moderator: Mmiscool

User avatar
By Mmiscool
#45231 Hello,

There have been some recent changes to the the interpreter. This first one got me real excited.

Thanks to cicciocb the 250 lines of basic code limit has been lifted. You may now save programs 5000 lines long!!!!!!!!!!!!

The $ in function and variable names should be fixed.

ip() function should work in ap and sta mode.

timesetup() function should no longer crash device.

The new commands are not in the documentation on the site just yet but they will be added shortly.

New functions added for DHT21 modules.

DHT.TEMP():
Will return the temperature reading in Celsius from the sensor.
dht.temp()

DHT.HUM():
Will return the humidity
dht.hum()

DHT.HEATINDEX():
Compute heat index in Fahrenheit.
dht.heatindex()
User avatar
By viscomjim
#45233 Hey Mike, this is excellent news. I'm sure i'm not the only one that is extremely happy that you keep this project going and improving. Your port has put the esp8266 back into my projects now that I can get a handle on things. A HUGE thanks to you and cicciocb for all the effort and great results!!!!!
User avatar
By Electroguard
#45242 Excellent on-going progress guys, and huge thanks for all your efforts.

I'm afraid I'm having great trouble trying to get version 2.0.Alpha 9 up and running though.
The first download stubbornly refused to flash, popping up failure to find ESP device errors.

So I downloaded and tried again. Was able to connect and load a Basic program, but each time I tried to run it (and occassionly when trying to save) it caused the esp to reset.
I kept whittling the program down until it was just a few simple lines long, and eventually discovered that the ip() function which previously returned 0.0.0.0 in AP mode was now causing an esp reset. Commenting out the ip() line no longer caused a reset, but saving (to default) sometimes did.

Then I noticed that the ESP was resetting all of its own accord at about 1 minute intervals without me doing anything!!!

So I reflashed with the previous 'unstable' version (which has actually been very stable for me) and everything was ok again. I should add that it takes some nifty footwork to be able to actually re-flash before the next 1 minute reset causes disconnection.

So I downloaded the latest version a third time and flashed it again (same defaults as previous), but now it resets every time I try to save a script, so I can't even run anything to try testing it further. Plus, it still resets of its own accord every 1 minute.

What is the flashing sequence that you guys do, and have you tried rebooting to empty AP defaults, or do you straight-away configure connection for your router?
Is there something else I can try, or should be doing?
User avatar
By Mmiscool
#45243 Have you tried using the format tool included with the flasher?

This might solve the problem. If not try flashing for a different size. If you have a 4m module it should work with any of the other size bin files.