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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

4,320 次查看
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)

标记 (1)
0 项奖励
回复
0 回复数