Search code examples
linuxbluetooth-lowenergybluezintel-edison

How to perform a bluetooth low-energy scan via BlueZ C library


I'm new in programming Bluetooth low energy using BlueZ.

I want to develop a native code c to scan nearby devices using a BlueZ API for Bluetooth low energy on Intel Edison. I've seen this question, but the answer doesn't really help. Any advice?


Solution

  • BLE programming with BlueZ on Galileo or Edison is similar to any other x86 platform.

    Edison (and Galileo) usually comes with BlueZ libraries pre-installed. You just need to link with them with your C code, and program similar to other x86 platform.

    For a full C code example bluetooth scan with BlueZ, see this link.

    Please see this example for BLE scan

    And the HCI API here.