The use of the ESP8266 in the world of IoT

User avatar
By joefly888
#20328 aguspg:

I think it would be helpful if you reference the above code in your standalone guide. Your present guide needs an arduino to program it (which in my opinion is not 100% standalone). So it is not fitting for many of the people who are using the module with NODEMCU directly without an arduino.

Also the above code, is a good example as it is a quick test of the ESP and Ubidot as it does not need any additional components connected to any of the IO pins and monitors the health of the module.

You can contact me via DM if you need to put it up on github or something
User avatar
By tytower
#20337 I am not sure I understand the above post but no arduino board is needed . You have not understood I fear. The Arduino IDE is only used as an "editor" to write C code . It is then used to compile the code with "gcc+" and then the IDE uses "ESPtool" to upload the firmware hex file up the serial line to the ESP8266 itself . Hope that clarifies it for you .

I think NodeMCU does much the same thing with different components doesn't it?

The function you are refering to node.readvdd33() is available in both languages I think
ESP.readvdd33() has been wrapped for C.
Last edited by tytower on Sat Jun 13, 2015 9:33 pm, edited 1 time in total.
User avatar
By joefly888
#20344 ty, i think we are on the same page of understanding.

I know that with the present code, ESP runs standalone. But it requires the arduino as the programmer, compiler and loader. doing it through esplorer software, it eliminates the arduino as for this purpose. I understand that the program once uploaded does not need the arduino to operate on the ESP.

I use the arduino a great deal. So I understand the preferences of going either way. I simply chose to work with ESP without using the arduino as there is just one more layer of hardware and interpreter at least for programming. I understand why someone would choose using the arduino to upload to ESP as they may be more familiar with the C side.

Either way, I just thought there might be enough people working with the NODEMCU/LUA directly that would benefit from an additional FAQ in the ESP section.

Hopefully this clarifies any mis-understanding on my part. Let me know if I am still not understanding the difference..

PS: I didn't mean that the my example is not possible through the Arduino IDE, I just meant it was a good straight forward example and easy way to test the module, whether through the IDE or with nodemcu lua.

EDIT: Ty, I realized my mis-understanding. I previously glanced in early stages of using ESP that some people were using the serial comm on arduino boards to send AT commands, then I mixed this up with the newly released IDE adoption of ESP. So sorry for my misunderstanding and confusing. Now I understand why it is truely standalone. However, I think there quite a few people using NODEMCU/LUA. So the above maybe of help to the community.
Last edited by joefly888 on Sat Jun 13, 2015 1:10 pm, edited 1 time in total.
User avatar
By aguspg
#20362 Hi Joefly888, just for further clarification, the ESP stand-alone guide uses the Arduino IDE, not an Arduino board.

Yes I find your code useful and we can post it on our website, thanks! Will send you a direct message.