ESP8266 OTA and PlatformIO - riban-bw/blog GitHub Wiki
I ported an ESP8266 Arduino project that allows OTA firmware update to PlatformIO.
- Copy .ino source file to main.cpp (or similar) in src directory
- Add
#include <Arduino.h>
to main.cpp - Chromebook needs port forwarding enabled so add TCP port 8266 (or whatever) in developer settings
- Configure platformio.ini:
[env:d1_mini_lite]
platform = espressif8266
board = d1_mini_lite
#upload_speed = 921600
framework = arduino
upload_protocol = espota
upload_port = target_ip
upload_flags =
--host_port=8266