add conn_hdl to all BLECharacteristic callback to support multiple prph connections
- added optional conn_hdl to getCccd(), indicateEnabled(), notifyEnabled() - added optional conn_hdl to all indicate() and notify() data function
This commit is contained in:
1 parent
0386062314
commit
5768575c42
15 files changed
+103
-93
No files matched your search
@@ -130,8 +130,9 @@ void BLEHidGeneric::setOutputReportCallback(uint8_t reportID, BLECharacteristic:
|
||||
/*------------------------------------------------------------------*/
|
||||
/* Callbacks
|
||||
*------------------------------------------------------------------*/
|
||||
void blehid_generic_protocol_mode_cb(BLECharacteristic* chr, uint8_t* data, uint16_t len, uint16_t offset)
|
||||
void blehid_generic_protocol_mode_cb(uint16_t conn_hdl, BLECharacteristic* chr, uint8_t* data, uint16_t len, uint16_t offset)
|
||||
{
|
||||
(void) conn_hdl;
|
||||
BLEHidGeneric& svc = (BLEHidGeneric&) chr->parentService();
|
||||
svc._protocol_mode = *data;
|
||||
|
||||
|
||||
Reference in new issue
Block a user