Re: Bluetooth services/features


Theis Orthmann Blickfeldt Jørgensen (TTJO)
 

You should use int bt_gatt_discover(struct bt_conn *conn, struct bt_gatt_discover_params *params); found in gatt.h. Also you should register a CB-function of type typedef u8_t (*bt_gatt_discover_func_t)(struct bt_conn *conn, const struct bt_gatt_attr *attr, struct bt_gatt_discover_params *params); - also found in gatt.h.
You will get a CB for each discovered service/charateristic (Depending on what you give as discovery-param).

In general look at gatt.h line #777 - #908.

 

 

Venlig hilsen/kind regards

Theis Orthmann Blickfeldt Jørgensen

Embedded Software Developer, M.Sc.EE.

 

Oticon A/S

Kongebakken 9

DK-2765 Smørum

 

ttjo@...

www.oticon.com

 

Join devel@lists.zephyrproject.org to automatically receive all group messages.