This example application runs out of the box on the BBC micro:bit v2.0. It relies on a ESP8266 breakout module flashed with AT firmware. The micro:bit communicates with the ESP8266 using UART.
The examples uses MQTT to publish and subscribe to an Drogue cloud sandbox.
BBC micro:bit v2.0
ESP8266 module with AT-command firmware version 1.7.x or newer.
Credentials for your local WiFi network will come from these entries in
wifi-ssid = "..." wifi-password = "..."
The example is expected to be run against Drogue cloud sandbox. There is script
echo.sh that will create echo from the cloud side (listening on device mqtt integration and sending same message to command endpoint).
The script is expected to be run like this:
To run the firmware:
cargo run --release
If you’re experiencing problems, try setting the
VID:PID values to that of your probe (you can find that from lsusb once your board is powered).
cargo run --release -- --probe <VID>:<PID>
Once flashed, the device will reset and attempt to join the WiFi network. If successful, it will print a message to the RTT log. You can then press the 'A' button on the micro:bit board to send a test message from the device.