# Bluetooth from Zig?

**URL:** <https://ziggit.dev/t/bluetooth-from-zig/18103>\
**Category:** Help\
**Tags:** c\
**Created:** [October 26, 2026, 9:26am UTC](https://ziggit.dev/t/bluetooth-from-zig/18103 "2026-10-26T09:26:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jomag](https://ziggit.dev/user_avatar/ziggit.dev/jomag/32/3858_2.png) [@Jomag](https://ziggit.dev/u/Jomag)\
**Post date:** [October 26, 2026, 9:26am UTC](https://ziggit.dev/t/bluetooth-from-zig/18103/1 "2026-10-26T09:26:24Z")

</div>

Hi,

I am trying to write a small program that to connects to a Bluetooth device and read/write/subscribe to GATT characteristics. I did manage to get something working using the c library `bluez_inc`, but I was wondering if you guys have some suggestions of what would be the best way to use Bluetooth from zig? Maybe some of you have already tried someting?

(note: I don’t need multi-platform, something that works on linux only is fine)

---

<div class="post-metadata">

**Author:** ![chrboesch](https://ziggit.dev/user_avatar/ziggit.dev/chrboesch/32/438_2.png) [@chrboesch](https://ziggit.dev/u/chrboesch)\
**Post date:** [October 26, 2026, 3:10pm UTC](https://ziggit.dev/t/bluetooth-from-zig/18103/2 "2026-10-26T15:10:07Z")

</div>

Hi Jomag, welcome to forum!

With which device do you want to receive the bluetooth signals? I’m using ESP32 devices and for what I’m doing UART is fast enough. And in my opinion it’s the simplest interface, even if you are using a raspi, but also with a normal pc. For example, the Waveshare ESP-32-C5 Wifi-Kit put the UART signal directly to USB and parallel to the GPIO pins.

---

<div class="post-metadata">

**Author:** ![Jomag](https://ziggit.dev/user_avatar/ziggit.dev/jomag/32/3858_2.png) [@Jomag](https://ziggit.dev/u/Jomag)\
**Post date:** [October 26, 2026, 3:38pm UTC](https://ziggit.dev/t/bluetooth-from-zig/18103/3 "2026-10-26T15:38:59Z")

</div>

> Hi Jomag, welcome to forum!

Thanks 😃

> With which device do you want to receive the bluetooth signals

I would like to connect to an electronic chessboard from my computer to read the placement of the chess pieces and turn leds on and off. I do not have much more information other that the characteristics UUIDs and byte patterns expected/returned by the board: [GitHub - chessnutech/Chessnut\_eBoards · GitHub](https://github.com/chessnutech/Chessnut_eBoards)

> for what I’m doing UART is fast enough. And in my opinion it’s the simplest interface

Cool. I admit, I am not so sure how I would proceed in practice, and I’d appreciate some pointers ☺. In particular, how could I discover the device and write or subscribe to the right characteristic using UART?

---

<div class="post-metadata">

**Author:** ![chrboesch](https://ziggit.dev/user_avatar/ziggit.dev/chrboesch/32/438_2.png) [@chrboesch](https://ziggit.dev/u/chrboesch)\
**Post date:** [October 26, 2026, 4:07pm UTC](https://ziggit.dev/t/bluetooth-from-zig/18103/4 "2026-10-26T16:07:38Z")

</div>

I took a look at the website, and there’s an easier way. You can use a dongle, for example the Edimax BT-8500, and then program it with an L2CAP socket, without D-Bus. I don’t know of any zig module, though; you’ll have to do that yourself. 😅

Edit: Personally, I would use this one with UART: [ESP32-C5-MINI-KIT | WaveShare Documentation](https://docs.waveshare.com/ESP32-C5-MINI-KIT)  
There you can open /dev/ttyACM0 in Zig for example and read the stream.

---

<div class="post-metadata">

**Author:** ![Jomag](https://ziggit.dev/user_avatar/ziggit.dev/jomag/32/3858_2.png) [@Jomag](https://ziggit.dev/u/Jomag)\
**Post date:** [October 26, 2026, 4:56pm UTC](https://ziggit.dev/t/bluetooth-from-zig/18103/5 "2026-10-26T16:56:12Z")

</div>

Ok, thank you for the tips, I’ll explore this option 🙂
