Creamers wrote:What are the pro's using lua over normal arduino code? Faster?
(I would like to send data to website very fast , maybe you can refer me to a sample?)
When I started in Nov 2014 with the ESP I had years of Arduino experience, and ZERO minutes LUA experience.
I started with LUA because that's the only thing that was available besides the bare C coding environment. After a few weeks I had the opportunity to join the IGRR ArduinoESP environment, and liked it! So I ditched the LUA environment in a few days.
Why? These things spring to mind:
- Arduino is a "known" language, with good documentation, many examples, many libraries, big community. LUA is impressive.
- ArduinoESP is a turnkey environment that "just works". There was no IDE, it was "work in progress" with many bugs, and rather small community.
- LUA consumes a lot of RAM limiting code. Arduino has enough RAM left for bigger sketches.
- LUA is interpreted, Arduino is compiled. therefore faster
- My older Arduino code migrated to the ESP in a simple way. Also Interrupt handlers and 433Mhz code migrated without problems.
- During the beta test I had a direct communication link to the creator IGRR, and this guy really know his coding, and is willing to help.
Note : I'm really impressed what the LUA guys have done, and it's MUCH better now since I started. For experienced LUA coders it's a fine environment right now. If Arduino for the ESP had not been published I probably would have stayed with LUA.
But in my opinion the Arduino environment is much more stable and mature, and I think the active Arduino community will give it a big push forward.
Re. your question for sending data to a website fast: the provided WifiClient example sends data to io.Sparkfun every 5 secs without any problem.