Use ArduinoOTA from PlatformIO?

greengnu
Posts: 27
Joined: Wed May 08, 2019 8:45 pm

Use ArduinoOTA from PlatformIO?

Postby greengnu » 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

Code: Select all

platformio run -t upload --upload-port 192.168.178.55
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:

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

Who is online

Users browsing this forum: No registered users and 91 guests