ESP8266
Using PlatformIO
1 #
2 # Create empty directory
3 #
4 mkdir myproject
5 cd myproject
6 
7 #
8 # Find type of supported boards
9 #
10 platformio boards espressif
11 
12 # Platform: espressif
13 # --------------------------------------------------------------------------------------------------------
14 # Type MCU Frequency Flash RAM Name
15 # --------------------------------------------------------------------------------------------------------
16 # huzzah esp8266 80Mhz 4096Kb 80Kb Adafruit HUZZAH ESP8266
17 # espino esp8266 80Mhz 4096Kb 80Kb ESPino
18 # esp12e esp8266 80Mhz 4096Kb 80Kb Espressif ESP8266 ESP-12E
19 # esp01_1m esp8266 80Mhz 1024Kb 80Kb Espressif Generic ESP8266 ESP-01 1M
20 # esp01 esp8266 80Mhz 512Kb 80Kb Espressif Generic ESP8266 ESP-01 512k
21 # nodemcu esp8266 80Mhz 4096Kb 80Kb NodeMCU 0.9 & 1.0
22 # modwifi esp8266 80Mhz 2048Kb 80Kb Olimex MOD-WIFI-ESP8266(-DEV)
23 # thing esp8266 80Mhz 512Kb 80Kb SparkFun ESP8266 Thing
24 # esp210 esp8266 80Mhz 4096Kb 80Kb SweetPea ESP-210
25 # d1 esp8266 80Mhz 4096Kb 80Kb WeMos D1
26 # d1_mini esp8266 80Mhz 4096Kb 80Kb WeMos D1 mini
27 # ...
28 #
29 # The rest of Board/MCU variations with the different Flash/SPIFFS can be customized using extra LD Script.
30 # PlatformIO contains the popular LD scripts.
31 # See http://docs.platformio.org/en/latest/platforms/espressif.html#custom-flash-size
32 #
33 
34 #
35 # Initialise base project
36 #
37 platformio init --board %TYPE%(see above)
38 # for example, initialise project for Espressif Generic ESP8266 ESP-01
39 platformio init --board esp01
40 
41 # The next files/directories will be created in myproject
42 # platformio.ini - Project Configuration File. |-> PLEASE EDIT ME <-|
43 # src - Put your source files here
44 # lib - Put here project specific (private) libraries
45 # Do you want to continue? [y/N]: Y
1 # process/build project
2 platformio run
3 
4 # build+upload firmware
5 platformio run --target upload

Advanced documentation

Demo of Over-the-Air (OTA) ESP8266 programming using PlatformIO

http://www.penninkhof.com/2015/12/1610-over-the-air-esp8266-programming-using-platformio/

![Over-the-Air ESP8266 programming using PlatformIO](http://img.youtube.com/vi/lXchL3hpDO4/0.jpg)