herrmann_wst
herrmann_wst

Reputation: 41

update local gatt characteristic value using bluetoothctl

I have set up a gatt Server on an raspberry pi using bluetoothctl and BlueZ 5.50 (according to this thread: BlueZ: How to set up a GATT server from the command line) I can connect to the gatt server from an other machine and also read the given value. Now I want to try notify.

The subscription works fine, but how do I update the value on the local gatt server? I can't use select-attribute because my local services an characteristics do not show up in the list that appears when using autocomplete.

Would be nice if someone can help me with this problem.

Upvotes: 4

Views: 1387

Answers (2)

Ordit Gross
Ordit Gross

Reputation: 71

view the server DB

list-attributes local

select the attribute before performing opertaion on that charecteristic

select-attribute local

Upvotes: 1

user16166695
user16166695

Reputation: 1

I too faced the same prob and i found solution for the same. i am using bluez5.49. whenever notify was enabled in client, notify_io will be created and pipe will be established. so if you write data in pipe fd, then it will be notified to client.

Upvotes: 0

Related Questions