| Crates.io | rainmaker |
| lib.rs | rainmaker |
| version | 0.1.1 |
| created_at | 2024-12-04 20:50:11.172009+00 |
| updated_at | 2024-12-04 21:10:07.538156+00 |
| description | Rust Implementation of ESP RainMaker Agent. |
| homepage | |
| repository | https://github.com/rainmaker-rs/rainmaker |
| max_upload_size | |
| id | 1472465 |
| size | 63,990 |
* Currently only supported on ESP32
Refer this for setting up environment for building and running rainmaker-rs application.
espflash erase-flash
cargo run --target <mcu-target> --bin <name of example>
List of targets for various chipsets:
| MCU | Target |
|---|---|
| ESP32 | xtensa-esp32-espidf |
| ESP32-S2 | xtensa-esp32-espidf |
| ESP32-S3 | xtensa-esp32-espidf |
| ESP32-C2 | riscv32imc-esp-espidf |
| ESP32-C3 | riscv32imc-esp-espidf |
| ESP32-C6 | riscv32imc-esp-espidf |
mkdir -p ~/.config/rmaker/fctry
mkdir -p ~/.config/rmaker/nvs
Make sure claiming is performed for your MCU(mentioned in prerequisites)
The claimdata is stored in /home/<user>/.espressif/rainmaker/claim_data/<account_id>/<mac_address>
Run
cargo run --target x86_64-unknown-linux-gnu --bin <example>
OR
cargo run_linux --bin <example>
Once the example is running, open the rainmaker mobile application and follow on-screen instructions for adding device
When running for the first time, you'll need to set RMAKER_CLAIMDATA_PATH environment variable to the folder containing your claim data (mentioned in step )
cargo-generate $ cargo install cargo-generate$ cargo generate rainmaker-rs/templateMore information about the generated template can be found at it's respective repository here