Use ArduinoOTA from PlatformIO?
Posted: Mon Nov 04, 2019 10:08 am
I have a project that uses ArduinoOTA.
So far I've used Arduino IDE to work on it and upload works without problems.
Now I ty to use platformIO to continue development. I can compile, but when I try to upload the compiled firmware using
it fails.
I also set
upload_protocol = espota
upload_port = 192.168.178.55
in my platformio.ini
Do I need to use a different upload_protocol when using ArduinoOTA?
Each time I try, I get:
So far I've used Arduino IDE to work on it and upload works without problems.
Now I ty to use platformIO to continue development. I can compile, but when I try to upload the compiled firmware using
Code: Select all
platformio run -t upload --upload-port 192.168.178.55
I also set
upload_protocol = espota
upload_port = 192.168.178.55
in my platformio.ini
Do I need to use a different upload_protocol when using ArduinoOTA?
Each time I try, I get:
Code: Select all
Uploading .pio\build\esp32cam\firmware.bin
11:27:54 [DEBUG]: Options: {'timeout': 10, 'esp_ip': '192.168.178.55', 'host_port': 31224, 'image': '.pio\\build\\esp32cam\\firmware.bin', 'host_ip': '0.0.0.0', 'auth': '', 'esp_port': 3232, 'spiffs': False, 'debug': True, 'progress': True}
11:27:54 [INFO]: Starting on 0.0.0.0:31224
11:27:54 [INFO]: Upload size: 3060512
Sending invitation to 192.168.178.55 .....
11:28:44 [INFO]: Waiting for device...
Uploading: [ ] 0%
11:28:48 [ERROR]: Error Uploading
*** [upload] Error 1