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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,155件の閲覧回数
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 返答(返信)