-->
Page 1 of 1

ESP8266 language

PostPosted: Wed Jul 29, 2015 11:51 am
by scottyjr
Hello All. I'm an active Arduino user; new to the ESP8266. Really enthused about these guys. Wifi, MC and I/O in a small, inexpensive package. Wow!

I'm confused about the programming language for the ESP8266s. I've seen some code with lines that seem to be C++, some code with what I believe to be LUA, and some with AT commands. Would appreciate any explanations of what the programming language is.

- Scotty

Re: ESP8266 language

PostPosted: Wed Jul 29, 2015 1:51 pm
by zacnotes
Just a quick note to put you on the right path-
There is a way to program the ESP through the arduino IDE, another way with the Lua language, and direct control over a serial interface with the AT commands. Most stock firmware on the device uses the AT command structure, I believe. To program it with the Lua language, you need to flash the correct firmware (nodeMCU) to the device. You may have to flash new firmware for the arduino route as well, but I am not certain. I have only messed with it on the Lua side, but I would highly recommend that route.

Re: ESP8266 language

PostPosted: Wed Jul 29, 2015 1:59 pm
by trackerj
scottyjr wrote:Hello All. I'm an active Arduino user; new to the ESP8266. Really enthused about these guys. Wifi, MC and I/O in a small, inexpensive package. Wow!

I'm confused about the programming language for the ESP8266s. I've seen some code with lines that seem to be C++, some code with what I believe to be LUA, and some with AT commands. Would appreciate any explanations of what the programming language is.

- Scotty


Forget about "AT Programming" for any serious independent running ESP8266 Project, you can use it as any other standalone MCU, no problem at all.

Intro : http://www.esp8266-projects.com/2015/02 ... dirty.html

For programming you have at least 3 options:

- Native SDK + Eclipse
You have a lot of examples on the forum in the relevant section, just a starter:
viewtopic.php?f=9&t=820

- LUA interpreter (NodeMcu Firmware):
http://www.esp8266-projects.com/2015/02 ... ty_24.html

- Arduino IDE
Step-by-step Arduino IDE + ESP8266 pack installation tutorial / video :
http://www.esp8266-projects.com/2015/06 ... table.html