bytebeam-esp-rs

Crates.iobytebeam-esp-rs
lib.rsbytebeam-esp-rs
version0.1.0
sourcesrc
created_at2023-03-14 06:41:28.637058
updated_at2023-03-14 06:41:28.637058
descriptionSDK for connecting ESP boards with Bytebeam IoT platform
homepage
repositoryhttps://github.com/bytebeamio/bytebeam-esp-rs-sdk/
max_upload_size
id809583
size84,084
Ravi Teja (tekjar)

documentation

README

bytebeam-esp-rs-sdk

Connect ESP32 with Bytebeam IoT platform using Rust 🦀

@bytebeamhq Latest versoin GitHub stars Docs GitHub license
Built with ❤︎ by Bytebeam

Check out docs to get started

Bytebeam is one stop IoT backend which let's you manage OTA updates, analytics, device-mobile communication & much more :sparkles: so that you can take your project to next level without hassel.

The bytebeam-esp-rs-sdk allows you to connect your ESP32 board with Bytebeam using Rust 🦀 . You can use any ESP32 board, we used ESP32-DevkitV1 board for testing and it worked like charm! Want to try it out? see the examples.

IMPORTANT : bytebeam-esp-rs requires that the certificates file ( provided by Bytebeam cloud ) exists in SPIFFS partition with name spiffs/device_config.json. Check out /tools/provision to know how to flash it!


⚡ Running examples

Rename cfg.toml.example to cfg.toml and put your Wi-Fi credentials.

You can use cargo espflash to build the project and flash it. Connect your ESP board using USB and run the following command:

cargo espflash --release --monitor --partition-table <PARTITION_TABLE> --example <EXAMPLE_NAME> --erase-otadata

For developing in Rust on ESP, we will need to setup rust compiler and toolchains. This can easily be done by espup.

Use the same <PARTITION_TABLE> which you have used for provisioning certificates!

e.g. To run actions example, with the given partitions_example.csv

cargo espflash --example actions --release --monitor --partition-table ./partitions_example.csv --erase-otadata

⚙️ Advance Configs

If you want to use different version of ESP IDF, or want to change the install location, you can change [env] in .cargo/config.toml.


🚧 Need Help?

Found some bug or need help with something? Feel free to open issues. You can open PRs as well for contributing.


Commit count: 19

cargo fmt