| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
|
Sorry, something went wrong.
There was a problem hiding this comment.
Implements ESP32 WiFi Unified OTA support in the Python CLI and library so ESP32 nodes can be updated over WiFi/TCP without the Android app.
Changes:
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| meshtastic/ota.py | Introduces the ESP32WiFiOTA class that connects to the node’s OTA TCP server, sends size/hash metadata, and streams firmware with basic progress reporting and status handling. |
| meshtastic/node.py | Adds startOTA() on Node to populate AdminMessage.OTAEvent (reboot_ota_mode, ota_hash) and updates the rebootOTA docstring to clarify firmware version applicability. |
| meshtastic/main.py | Imports meshtastic.ota/admin_pb2, adds the --ota-update admin CLI flag, and invokes startOTA() plus the ESP32WiFiOTA flow when running over a TCP interface. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
|
I'll resolve copilot comments as soon as I'm back to my laptop as well as CI issues. |
Sorry, something went wrong.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
That should be it. |
Sorry, something went wrong.
Codecov Report❌ Patch coverage is 98.21429% with 2 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## master #898 +/- ##
==========================================
+ Coverage 59.82% 60.83% +1.00%
==========================================
Files 24 25 +1
Lines 4329 4440 +111
==========================================
+ Hits 2590 2701 +111
Misses 1739 1739
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry.
|
Sorry, something went wrong.
|
Tested this on G2 and it works as expected |
Sorry, something went wrong.
|
Worked Ok on a Heltec V3 |
Sorry, something went wrong.
|
Fixed the CI errors |
Sorry, something went wrong.
|
I think this seems good and I'll get it merged. Noting here but doesn't need to be your work if you don't want to, but we might add an optional argument to --reboot-ota that lets users manually reboot into an appropriate mode, to enable the BLE side of things without needing to actually implement the BLE uploading etc. But I haven't dug that hard into how it all works, either, so I'm not sure the best UI there. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Added ESP32 WiFi Unified OTA update support.
Did not include BLE support as I didn't manage to connect to a device via BLE. I have a draft (AI-generated, because I know little about BLE and its libraries) for BLE, but I'm not going to commit something I can't review and test properly.
Related to #895