Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA not working #82

Open
jekkos opened this issue Dec 20, 2023 · 3 comments
Open

OTA not working #82

jekkos opened this issue Dec 20, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@jekkos
Copy link
Contributor

jekkos commented Dec 20, 2023

I have tried to use OTA updates a couple of times, but they never succeed. The upload does start but always stalls at some point. Then after that nothing happens and the task just stops. Does anyone have similar experiences?
It would be nice to have this as otherwise I have to detach the lamp from the wall every time there is a new feature or bugfix.

@ph1p ph1p added the bug Something isn't working label Dec 21, 2023
@thunder-62
Copy link

thunder-62 commented Dec 22, 2023

actually it works quite well here. The only thing I did was to fix an issue related to the weird Path on my PC:

env.Execute("\"$PYTHONEXE\" -m pip install requests_toolbelt")
env.Execute("\"$PYTHONEXE\" -m pip install tqdm")

I just put $PYTHONEXE in masked Quotes (\") maybe this helps ;-)

@Aeonos
Copy link

Aeonos commented Dec 25, 2023

Can someone explain to me, how one can use the ota? I just managed to upload to my esp32 with the usb serial connection.

@thunder-62
Copy link

thunder-62 commented Dec 27, 2023

just have look @ upload.py:

# Allows PlatformIO to upload directly to AsyncElegantOTA
#
# To use:
# - copy this script into the same folder as your platformio.ini
# - set the following for your project in platformio.ini:
#
# extra_scripts = platformio_upload.py
# upload_protocol = custom
# upload_url = <your upload URL>
#
# An example of an upload URL:

# upload_URL = http://192.168.1.123/update

the only remaining task left is to ensure unsername and password in upload.py matches OTA_USERNAME and OTA_PASSWORD in include/secrets.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants