Current Lua downloadable firmware will be posted here

User avatar
By alonewolfx2
#2974
cendev wrote:i'm pretty sure both answers are gonne be no :) if you remove a file, the stored function will remain until rebooting, and for the second question, since these random chars are sent during the bootloader stage i'm again pretty sure firmware will not be able to handle this situation :/

edit : if you have a strong trust with your soldering skills, you can try soldering the gpio 16, 15 from the esp chip to a homemade board :) with resistors, there won't be an overcurrent problem and you may have more gpio's :) i did it and they work :) you can have further information about pinout on the wiki's chip page :)

can you share your connection schematic of gpio 15 and 16 with resistor?
User avatar
By zeroday
#2975
scargill wrote:Let me be the first to say "WELL DONE" - I got up this morning (UK based) and noted the update before I read this blog. The timer works (2 seconds) and I can reload files without error. Finally I can start looking at the various functions without the thing falling over. I'll write a blog item later this morning over at http://scargill.wordpress.com for those looking in (and there are quite a few).

I do have a couple of questions. Bear with me as this might sound dumb..

Let's say we have a file which has a function definition in it... and that gets called at power up as I do.. It I then delete the file and over-write it and call it again - does the existing stored function get over-written or do we need to reboot. As you can imagine, while developing functions there are going to be continual errors along the way.

I could see some serious uses for this - I just hope there is enough memory to store a decent amount of code in the unit.

Suggestion for you - the ESP-01 has at best 2 wires to play with - it would be really nice if one could read the likes of the Dallas 1-wire temperature chips on one of them. In the simplest case that opens the possibility of WIFI controlled temperature control (Dallas chip and a relay) using the ESP-01 and no host processor - wouldn't that be good.

Regards

Pete.


if your new file contain a function with same name, that function will over-write the old one. no re-boot need.
1-wire api is in the todo list.
as cendev said, the rubbish chars are from chip it self, if you set baudrate 74880, it looks nicer.
the only way to get rid of these chars is switch uart to some other pins of esp8266.

Ram is precious in esp8266. my strategy is write a firmware with basic api, do more complicated things with lua.
load lua script to ram only if it is needed .
User avatar
By 4refr0nt
#2976 Hi!
Tell me, please.
Where address of flash data (where init.lua, etc) and size?
If we have boot loop - we can flash blank.bin for erase bad script, full reflashing firmware not needed.