Getting started

So you want to try Drogue Device, great! To get started, there are a few tools you need to install:

  • rustup - the Rust toolchain is needed to compile Rust code.

  • probe-run - to flash the firmware on your device. If you already have other tools like OpenOCD setup, you can use that as well.

If you don’t have any supported board, don’t worry: you can also run drogue-device on your PC using the std examples.

Getting a board with examples

Running an example

First you need to clone the github repository;

git clone https://github.com/drogue-iot/drogue-device.git
cd drogue-device

You can run an example by opening a terminal and entering the following commands:

cd examples/std/pingpong
RUST_LOG=info cargo run --release

If you’re using any of the microcontroller examples:

cd examples/nrf52/microbit/jukebox
DEFMT_LOG=info cargo run --release
The DEFMT_LOG environment variable controls the example log verbosity. If not set, you will not see anything logged to the console.

Whats next?

Congratulations, you have your first Drogue Device application running! Here are some alternatives on where to go from here: