change BLECLientCharacteristic notify callback signature
from notify_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len) to notify_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len) Added
This commit is contained in:
1 parent
4747a9b7ae
commit
d0655b369d
9 files changed
+29
-23
No files matched your search
@@ -40,8 +40,8 @@
|
||||
|
||||
#define DEBUG_ANCS 0
|
||||
|
||||
void bleancs_notification_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len);
|
||||
void bleancs_data_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len);
|
||||
void bleancs_notification_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len);
|
||||
void bleancs_data_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len);
|
||||
|
||||
/* ANCS Service : 7905F431-B5CE-4E99-A40F-4B1E122D00D0
|
||||
* Control Point : 69D1D8F3-45E1-49A8-9821-9BBDFDAAD9D9
|
||||
@@ -383,14 +383,14 @@ bool BLEAncs::actNegative(uint32_t uid)
|
||||
/*------------------------------------------------------------------*/
|
||||
/* Callback
|
||||
*------------------------------------------------------------------*/
|
||||
void bleancs_notification_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len)
|
||||
void bleancs_notification_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len)
|
||||
{
|
||||
BLEAncs& svc = (BLEAncs&) chr.parentService();
|
||||
BLEAncs& svc = (BLEAncs&) chr->parentService();
|
||||
svc._handleNotification(data, len);
|
||||
}
|
||||
|
||||
void bleancs_data_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len)
|
||||
void bleancs_data_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len)
|
||||
{
|
||||
BLEAncs& svc = (BLEAncs&) chr.parentService();
|
||||
BLEAncs& svc = (BLEAncs&) chr->parentService();
|
||||
svc._handleData(data, len);
|
||||
}
|
||||
Reference in new issue
Block a user