Skip to content

SDK for connecting ESP with Bytebeam IoT platform using Rust

License

Notifications You must be signed in to change notification settings

bytebeamio/bytebeam-esp-rs-sdk

Repository files navigation

bytebeam-esp-rs-sdk

Connect ESP32 with Bytebeam IoT platform using Rust 🦀

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 ✨ 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.


About

SDK for connecting ESP with Bytebeam IoT platform using Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages