- Thu Nov 20, 2014 7:21 am
#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 .