Languages

Menu
Sites
Language
How to check connection state of GATT server?

My gear s3 is running as a role of Gatt Server and I checked receiving and sending data is succeeded.

But how can I check connection state of Gatt server?

bt_gatt_set_connection_state_changed_cb is working when only gatt client.

Registered callback in bt_gatt_server_set_characteristic_notification_state_change_cb is called whenever gatt client notify or not.

But when gatt client is disconnected without 'unnotify' for some reasons(far away ...), registered callback  is not called.

Please let me know if you know how to detect connection state.

Edited by: 민철 김 on 15 Mar, 2018
View Selected Answer

Responses

2 Replies
Mark as answer
Armaan-Ul- Islam

In the API References of Tizen Native: Bluetooth Gatt Server:

 

https://developer.tizen.org/development/api-references/native-application?redirect=https://developer.tizen.org/dev-guide/3.0.0/org.tizen.native.wearable.apireference/group__CAPI__NETWORK__BLUETOOTH__GATT__SERVER__MODULE.html

 

There's no function to determine connection state of GATT server. Most probably Connection state changed callback is designed for GATT Client only.

민철 김

Thanks but I guess Tizen has to support connection state feature, because 'Advertizing' is stopped when client is connected and started when it is disconnected like other ble devices.

I know watch is not ble devices but tizen is intend to support gatt server then connection state feature is necessary in my opinion.