Hi Simon, On Wed, May 10, 2017 at 12:47:43PM -0700, Simon Ratner wrote: > Hi dev list, > > I may be completely missing this, but is there a gattc API for subscribing > to notifications on a NOTIFY characteristic exposed by a peer peripheral? > > Cheers, > simon
You subscribe by writing a special value to the characteristic's CCCD: * notifications: 0x01:0x00 * indications: 0x02:0x00 You can do this via ble_gattc_write() (or more conveniently, ble_gattc_write_flat()). For an example of how this is done, see the blecent_read_write_subscribe() function in apps/blecent/src/main.c. The host API could probably benefit from a few convenience functions here. Chris