Reply
Posts: 11
Registered: ‎07-20-2017
Accepted Solution

Characteristic Handlers in a NCP project

Good afternoon,

 

I have a legacy system which must communicate with an BGM111 to offer a custom GATT service. As I can't use your BGAPI libs or generated code in the legacy part, How can I know the GATT handlers in order to call functions like cmd_gatt_server_write_attribute_value?

For example in the provided .isc example. Which handler will correspond to each custom characteristic?

 

iscExample.png


Kind regards,

David

Posts: 2,612
Registered: ‎08-25-2015

Re: Characteristic Handlers in a NCP project

Hi,

 

If you know the UUID of the characteristics you can always discover the GATT from the client side with gatt_discover_characteristics.

 

The handle numbers are created after you build the GATT, you can find them in gatt_db.h.

 

Regards,

Tiago

Highlighted
Posts: 11
Registered: ‎07-20-2017

Re: Characteristic Handlers in a NCP project

I realize now I didn't set any ID on my example so the characteristic's handlers weren't in the gatt_db.h

Thanks,

 

David