Skip to content

Instantly share code, notes, and snippets.

@comoc
comoc / scantest.cpp
Created February 22, 2024 14:03 — forked from bertrandmartel/scantest.cpp
Bluez BLE scanning example (port of https://github.com/carsonmcdonald/bluez-experiments in C++)
// g++ scantest.cpp -lbluetooth
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <iostream>
#include <signal.h>
#include <bluetooth/bluetooth.h>