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

Configure OTA on wblc5 (BK7231T) #289

Open
raulzanardo opened this issue Jul 16, 2024 · 4 comments
Open

Configure OTA on wblc5 (BK7231T) #289

raulzanardo opened this issue Jul 16, 2024 · 4 comments

Comments

@raulzanardo
Copy link

How do configure the platformio.ini file to use the OTA upload protocol?

@Cossid
Copy link
Collaborator

Cossid commented Jul 16, 2024

You can use the generic-bk7231t-qfn32-tuya board for the WBLC5 board, https://docs.libretiny.eu/boards/generic-bk7231t-qfn32-tuya/

@Cossid Cossid closed this as completed Jul 16, 2024
@raulzanardo
Copy link
Author

Ok, but how do configure the upload protocol for it to be OTA?

I cant find any documentation about the upload_protocol of the platformio.ini file

@Cossid Cossid reopened this Jul 16, 2024
@Cossid
Copy link
Collaborator

Cossid commented Jul 16, 2024

I don't know that OTA in particular is a part of platformio, as it is more an implementation detail, not low-level.

platformio is expecting UART; https://docs.libretiny.eu/docs/flashing/platformio/#using-ltchiptool-wired-via-uart

I'll defer to @kuba2k2 to expand further.

@kuba2k2
Copy link
Member

kuba2k2 commented Jul 16, 2024

If by "OTA" you're referring to the wireless update over Wi-Fi, then no, PlatformIO doesn't have that built-in.
In fact, to best of my knowledge, PlatformIO doesn't have that feature on any supported platform.

If you want to upload your firmware via Wi-Fi, you will need to use the Update Arduino library. The library is very similar to ESP32's equivalent, it's meant to be a drop-in replacement.
See docs:

The upload_protocol is not used and shouldn't be changed - it defaults to uart, no other protocol is currently supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants