You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/03/30 18:23:11 UTC
[GitHub] ccollins476ad opened a new issue #24: Helper functions for subscribing to notifications / indications
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:
users@infra.apache.org
With regards,
Apache Git Services