std drogue cloud example

This example demonstrates using Drogue Device sending telemetry messages to Drogue Cloud. This example runs on any target supporting the Rust standard library.

Prerequisites

Software

  • To build the example, you need to have rustup.

  • A service like Drogue IoT Cloud. See drogue-cloud for how to run that, or use the sandbox (requires TLS).

Configuring

HTTP authentication will come from these entries in ~/.drogue/config.toml:

http-username = "..."
http-password = "..."

For Drogue IoT Cloud, the username/password is stored in this form: device_id@application.

Running

To run the application:

RUST_LOG=info cargo run --release