Building a Bluetooth LE device with embedded Rust - moxi Ep3

The Rusty Bits July 7, 2025
Video Thumbnail

About

No channel description available.

Video Description

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

Craft Your Bluetooth Project

AI-recommended products based on this video

Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
Amazon Basics 9 Volt Everyday Alkaline Battery - Pack of 8 The Nordic Swan Ecolabel

Amazon Basics 9 Volt Everyday Alkaline Battery - Pack of 8 The Nordic Swan Ecolabel

(215,650)
$12.78
FREE delivery Wed, Aug 20 on your first order
4K+ bought in past month
Loading...
Amazon Basics 48 Pack AA High-Performance Alkaline Batteries, 10-Year Shelf Life, Easy to Open Value Pack The Nordic Swan Ecolabel

Amazon Basics 48 Pack AA High-Performance Alkaline Batteries, 10-Year Shelf Life, Easy to Open Value Pack The Nordic Swan Ecolabel

(568,836)
$18.26
FREE delivery Wed, Aug 20 on your first order
10K+ bought in past month
Loading...
Bluetooth Pillow Speaker for Sleeping, Mini Portable Under Pillow Speaker with White Noise Ultra Thin Pillow Speakers for Deep Sleeping, for Side Sleepers and Deep Sleep

Bluetooth Pillow Speaker for Sleeping, Mini Portable Under Pillow Speaker with White Noise Ultra Thin Pillow Speakers for Deep Sleeping, for Side Sleepers and Deep Sleep

(0)
$13.69
FREE delivery Feb 26 - Mar 5
Loading...
e.l.f. Soft Glam Satin Concealer, Medium Coverage For Blemishes & Under-Eye, Crease-Resistant, Long Lasting, Vegan & Cruelty-Free, 21 Light Neutral

e.l.f. Soft Glam Satin Concealer, Medium Coverage For Blemishes & Under-Eye, Crease-Resistant, Long Lasting, Vegan & Cruelty-Free, 21 Light Neutral

(974)
$5.96
FREE delivery Sun, Mar 22 on your first order
500+ bought in past month
Loading...
Jamieson Vitamin B50 Complex, Blend of 8 Essential B Vitamins, with Folate for Cellular Health, Supports Energy Production and Metabolism. Vegetarian, Non-GMO, Gluten-Free, Bonus Size, 120 Caplets, Proudly Canadian

Jamieson Vitamin B50 Complex, Blend of 8 Essential B Vitamins, with Folate for Cellular Health, Supports Energy Production and Metabolism. Vegetarian, Non-GMO, Gluten-Free, Bonus Size, 120 Caplets, Proudly Canadian

(915)
$15.97$14.74
FREE delivery Tue, Oct 21 on your first order
800+ bought in past month
Loading...
Digital Multimeter Voltmeter Battery Voltage Multi Tester AC DC Volt OHM Amp Current Meter Circuit Continuity Resistance Diode Electrical Tester with Test Leads Backlight LCD Display

Digital Multimeter Voltmeter Battery Voltage Multi Tester AC DC Volt OHM Amp Current Meter Circuit Continuity Resistance Diode Electrical Tester with Test Leads Backlight LCD Display

(1,904)
$16.13
FREE delivery Sat, Jan 3 on your first order
1K+ bought in past month
Loading...
AstroAl Digital Multimeter 2000, Multimeter Tester with Volt Amp Ohm, Multi Meter Measures Voltage, Current, Resistance, Continuity and Diode, Electrical Tester with Test Leads, Backlight LCD Display
Best Seller

AstroAl Digital Multimeter 2000, Multimeter Tester with Volt Amp Ohm, Multi Meter Measures Voltage, Current, Resistance, Continuity and Diode, Electrical Tester with Test Leads, Backlight LCD Display

(48,000)
$19.54
FREE delivery Mon, Aug 25 on your first order
2K+ bought in past month