NodeMCU Config

= Micropython =

Installation
Download firmware file from micropython.org
 * Flashing Micropython

sudo pip install esptool esptool.py --port /dev/ttyUSB0 erase_flash esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 ~/Desktop/esp8266-20171101-v1.9.3.bin


 * Check the firmware integrity:

Connecting
sudo apt install picocom picocom /dev/ttyUSB0 -b115200
 * Via Terminal:


 * Via REPL(web):


 * If you disabled automatic start-up on boot, you may run configured daemon on demand using:

sudo pip install adafruit-ampy ampy --port /dev/ttyUSB0 put ~/Desktop/main.py
 * Upload data using Serial Port

File System

 * Checking filesystem:


 * Create directories:


 * Remove Files:


 * Reading data:


 * Writing Data to files:

Networking

 * Checking Machine Frequency & Overclocking:


 * Check AP Name:


 * Change AP name and password:


 * Turning off AP:

Boot Process

 * 1) As a final step of boot procedure, main.py is executed from filesystem
 * 2) This file is a hook to start up a user application each time on boot (instead of going to REPL).
 * 3) For small test applications, you may name them directly as main.py
 * 4) But instead it’s recommended to keep your application(s) in separate files, and have just the following in main.py:

= Lua =


 * References