Re: Triggering GATT Notification's

2016-06-01 Thread Christopher Collins
On Wed, Jun 01, 2016 at 07:04:02AM +0100, Wayne Keenan wrote: > Because I'm creating a 'ble_gatt_svc_def' at runtime these are the steps > I'm having todo to be able to keep hold of the characteristic handle in > order to be able to call 'ble_gatts_chr_updated(handle)' to send the > notification

Re: Triggering GATT Notification's

2016-06-01 Thread Wayne Keenan
Hiya Chris, On 31 May 2016 at 16:36, Christopher Collins wrote: > > > There are a few ways to send notifications: > > 1. The stack sends them automatically to subscribed clients when a >characteristic value changes. The client subscribes to notifications >(or

Re: Triggering GATT Notification's

2016-05-31 Thread Christopher Collins
Hi Wayne, On Tue, May 31, 2016 at 12:59:20PM +0100, Wayne Keenan wrote: > Hi, > > I have a custom GATT service working with read/write all ok; now I am > looking at adding notify support. > > On my first look thru the newt source my first take was that the app needs > to cache the GATT

Triggering GATT Notification's

2016-05-31 Thread Wayne Keenan
Hi, I have a custom GATT service working with read/write all ok; now I am looking at adding notify support. On my first look thru the newt source my first take was that the app needs to cache the GATT registrations in 'gatt_svr_register_cb' to obtain the chr_val_handle and also track