First clone this git repository :
git clone git@github.com:tdehaeze/esp8266-simple-web-server.git
You need to install PlatformIO CLI or the full PlatformIO IDE.
Then, you have to set the correct serial port on platformio.ini
file :
platform = espressif
framework = arduino
board = nodemcuv2
upload_port = /dev/tty.SLAB_USBtoUART
On mac, to see all available serial ports, you can use : ls /dev/tty.*
.
Then on the project directory, to compile and upload the project, just type :
platformio run
To open a serial communication, you can type :
platformio serialports monitor --port /dev/tty.SLAB_USBtoUART --baud 115200 --eol CR --raw
Pin map : link
- Cloud solution : http://nodemcu-build.com/
- Using Docker : https://hub.docker.com/r/marcelstoer/nodemcu-build/
- Official firmware : https://github.com/espressif/ESP8266_AT/tree/master/bin
- Lua-NodeMCU firmware : https://github.com/nodemcu/nodemcu-firmware
-
Command line (Windows/Linux/OSX) : esptool
git clone https://github.com/themadinventor/esptool cd esptool ./esptool.py --port=ESP_SERIAL_PORT write_flash 0x00000 BINARY_PATH
On mac, to see all available serial ports, you can use : ls /dev/tty.*
- With UI (Windows) : nodeMCU Flasher