Building a Bluetooth LE device with embedded Rust - moxi Ep3

Published at : 23 Dec 2025

The final boss in our air quality monitor project is Bluetooth Low Energy (BLE): the goal today is to wirelessly share CO2 PPM with an app running on an iPhone, using embedded Rust ..and.. some C??

Subscribe : https://www.youtube.com/@therustybits?sub_confirmation=1
Patreon : https://www.patreon.com/therustybits

Chapters
0:00 Intro
0:39 The Protocol
1:40 BLE Basics
4:10 The Interface
6:45 The Trouble
10:31 Server Definition
12:07 Device Address
13:38 Host Setup
16:23 Advertising
20:20 Connection
21:58 The App
24:50 Thing52 CO2 impl
34:20 The Next Thingy

Special thanks to `word` and `long` Patreon supporters!
- Gaël Giraud
- Χάρης Αμαράντηγος
- Jason Whitlark
- Bogdan

Project stuff
Today's code | https://github.com/therustybits/moxi
Part 1 | https://youtu.be/vT4-bvHCbE0
Part 2 | https://youtu.be/uZDcWA8cCsw

Useful stuff
Aranet4 | https://amzn.to/4mrXktk
^ This is an affiliate link, which costs you nothing, but will earn the channel a small commission if you decide to make a purchase.

References
Bluetooth | https://www.bluetooth.com/specifications/specs/
trouble | https://embassy.dev/trouble/
nrf-sdc | https://github.com/alexmoon/nrf-sdc/
SoftDevice Controller | https://docs.nordicsemi.com/bundle/ncs-2.5.0/page/nrfxlib/softdevice_controller/README.html
Thingy52 app | https://www.nordicsemi.com/Products/Development-tools/Nordic-Thingy-52-App
Thingy52 firmware | https://github.com/nordicSemiconductor/Nordic-Thingy52-FW
The Embedded Rust book | https://docs.rust-embedded.org/book/
"The Book" | https://doc.rust-lang.org/book/index.html

Playlist
Straight from the Source - Matt Large
Organized Chaos - Arthur Benson
Fall Call - Dusty Decks
Counterbalanced - Dusty Decks
A Thief in the Night - Etienne Roussel
Espresso Bar Italia - Trabant 33
Local Forecast - Elevator - Kevin MacLeod
Goose Bumps - Wendy Marcini
The Master - Scientific