How to get receive (read/notify) data with BlueZ Dbus API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get receive (read/notify) data with BlueZ Dbus API

2,078 Views
tanoue
Contributor III

Hi,

I am trying to programming an bluetooth application with BlueZ API (DBus) on i.MX board.

I would like to write program with C because it will be run on embedded system.


Fortunately, I found the following sample code and was making BLE central application.

https://github.com/jjjsmit/BluetoothBLEClient

 

However, I cannot receive data on the application from BLE peripheral using notify.


Bluetoothctl that the base software is referring to is able to receive data and display it on the console.


Can anyone give me some advice on what I am missing?
I think we need to add a "pipe_io" member and a process using "dbus_message_get_args()".

(bleClient.c Line175, Line268)

Tags (1)
0 Kudos
0 Replies