Closed Gei0r closed 6 years ago
We use this version https://github.com/espressif/arduino-esp32/blob/master/tools/espota.py
Thank you. My pull request there was merged. Can you incorporate the fix in platformio?
Maybe you can also change the link in tool-espotapy
's package.json
, so it points to your link?
Done! Please pio update
.
Thanks for the report.
Hi, I had a small problem with OTA using platformio: The upload worked fine, but platformio reported "[ERROR]: Error response from device". I was able to fix the problem in
espota.py
. Now I want to contribute the fix, but I don't know where. Platformio does not seem to take the file from github, but rather from bintray.com. The "official" github version is different from the bintray one.Anyway, here's the fix: The problem is that TCP is a stream-based protocol and the "OK" response from the ESP can be read by an earlier
recv
call. Whenespota.py
later tries to receive the "OK" again, it is already gone. Therefore I added a little flag that is set if a response contains "OK" so that we don't continue looking for it afterwards.How can I get this fix into platformio?