ccollins476ad opened a new issue #24: Helper functions for subscribing to 
notifications / indications
URL: https://github.com/apache/mynewt-nimble/issues/24
 
 
   Currently, an application subscribes to notifications or indications by 
performing a GATT write procedure on the appropriate CCCD.  Knowing which 
two-byte pattern to write, and remembering to use little-endian, feels a bit 
too low-level to impose on the application developer.
   
   I suggest we add two helper functions:
   ```
   int
   ble_gattc_subscribe_notifications(uint16_t conn_handle, uint16_t cccd_handle,
                                     ble_gatt_attr_fn *cb, void *cb_arg);
   int
   ble_gattc_subscribe_indications(uint16_t conn_handle, uint16_t cccd_handle,
                                   ble_gatt_attr_fn *cb, void *cb_arg);
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to