I am new to PlatformIO but have used it now a couple of months..
So far I have worked on a single project that started out targeting an ESP-07 module and I created two environment settings for flashing via serial and via OTA.
Now I find that I need to use an ESP-07S module instead because it has 4 times the flash size (4M versus 1M). My code size is now just under half of the ESP-07's max of 1 MB and I believe that in order to use OTA you need to have space for twice the project binary in flash plus any EEPROM space you need.
So I need to change the board type to ESP-07S in yet another environment section in platformio.ini, but I have now googled in vain for a long time to find out how to do this setup change.
Can someone here direct me to where/how I can add two more env sections for ESP-07S-serialflash and ESP-07S-OTAflash?
In fact I think that my current setting is incorrect even if it has the following:
[env:esp07_serial]
platform = espressif8266@2.5.2
board = esp07
framework = arduino
lib_deps =
tzapu/WiFiManager@^0.16.0
knolleary/PubSubClient@^2.8
paulstoffregen/OneWire@^2.3.7
milesburton/DallasTemperature@^3.11.0
arduino-libraries/NTPClient@^3.2.1
upload_speed = 115200
upload_port = COM4
monitor_speed = 115200
monitor_port = COM4
[env:esp07_OTA]
platform = espressif8266@2.5.2
board = esp07
framework = arduino
lib_deps =
tzapu/WiFiManager@^0.16.0
knolleary/PubSubClient@^2.8
paulstoffregen/OneWire@^2.3.7
milesburton/DallasTemperature@^3.11.0
arduino-libraries/NTPClient@^3.2.1
upload_port = 192.168.119.234
upload_flags = --auth=default
upload_protocol = espota
monitor_speed = 115200
monitor_port = COM4
Because when I changed my physical device from Adafruit Huzzah Breakout (which uses an ESP-12 module with 4M flash) to an ESP-07 prototype it refused to do OTA even though that worked fine with the Huzzah.
Just connecting another device and not doing any code changes (or platformio.ini changes)...
So how should I correctly change the board type (or better add it as a new env setting)?
Is it as simple as copying the whole env section and give it a new name plus changing:
board = esp07
to
board = esp07s
I have not yet built the ESP-07S prototype board, need to make a new altogether because I cannot get the ESP-07 off of the board I used (a veroboard type).