gepd / Deviot

Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Apache License 2.0
307 stars 56 forks source link

DEV BUG: OTA auth fail if using device selection, must use ip manual #273

Closed tablatronix closed 5 years ago

tablatronix commented 5 years ago

I have to manually enter the ip to get ota working, if I select the ip in devices it does not add an auth token and fails, it also does not prompts for password etc.

screen shot 2019-01-13 at 9 38 23 am

tablatronix commented 5 years ago
Use manually specified: no
esptool -vv -cd nodemcu -cb 921600 -cp "no" -cf .pioenvs/nodemcuv2/firmware.bin
esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to nodemcu
setting baudrate from 115200 to 921600
setting port from /dev/tty.usbserial to no
espcomm_upload_file
espcomm_upload_mem
opening port no at 921600
error: cannot access no
tablatronix commented 5 years ago

if I manually add auth key, and use device mdns selection, it still fails with bad command

Use manually specified: no
esptool --auth=1234 -vv -cd nodemcu -cb 921600 -cp "no" -cf .pioenvs/nodemcuv2/firmware.bin
esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
error: Invalid argument or value after --auth=1234 (argument #2)
*** [upload] Error 2
========================== [ERROR] Took 3.62 seconds ==========================

================================== [SUMMARY] ==================================
Environment nodemcuv2   [ERROR]
Environment esp32dev    [SKIP]
========================== [ERROR] Took 3.62 seconds ==========================

[Sun Jan 13 09:53:17 2019]
gepd commented 5 years ago

Fixed with https://github.com/gepd/Deviot/commit/b63913d5b948959d6bc7a0cd2b54199cb62a91ec Can you check it?