update HAP write cb signature
This commit is contained in:
1 parent
ac7c1b4e47
commit
3b37b42bcd
3 files changed
+4
-4
No files matched your search
@@ -315,7 +315,7 @@ void HAPCharacteristic::_eventHandler(ble_evt_t* event)
|
||||
case HAP_OPCODE_CHR_WRITE:
|
||||
if (_hap_wr_cb)
|
||||
{
|
||||
hap_resp = _hap_wr_cb(*this, gatt_req, hap_req);
|
||||
hap_resp = _hap_wr_cb(this, gatt_req, hap_req);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ enum HAPChrProperties_t
|
||||
class HAPCharacteristic : public BLECharacteristic
|
||||
{
|
||||
public:
|
||||
typedef HAPResponse_t* (*hap_write_cb_t) (HAPCharacteristic& chr, ble_gatts_evt_write_t const* gatt_req, HAPRequest_t const* hap_req);
|
||||
typedef HAPResponse_t* (*hap_write_cb_t) (HAPCharacteristic* chr, ble_gatts_evt_write_t const* gatt_req, HAPRequest_t const* hap_req);
|
||||
static BLEUuid _g_uuid_cid;
|
||||
|
||||
HAPCharacteristic(BLEUuid bleuuid, uint8_t format, uint16_t unit = UUID16_UNIT_UNITLESS);
|
||||
|
||||
@@ -98,7 +98,7 @@ static const char* pairing_method_str[] =
|
||||
|
||||
#endif
|
||||
|
||||
static HAPResponse_t* pairing_setup_write_cb (HAPCharacteristic& chr, ble_gatts_evt_write_t const* gatt_req, HAPRequest_t const* hap_req);
|
||||
static HAPResponse_t* pairing_setup_write_cb (HAPCharacteristic* chr, ble_gatts_evt_write_t const* gatt_req, HAPRequest_t const* hap_req);
|
||||
|
||||
HAPPairing::HAPPairing(void)
|
||||
: HAPService(HAP_UUID_SVC_PAIRING),
|
||||
@@ -137,7 +137,7 @@ err_t HAPPairing::begin(void)
|
||||
}
|
||||
|
||||
|
||||
static HAPResponse_t* pairing_setup_write_cb (HAPCharacteristic& chr, ble_gatts_evt_write_t const* gatt_req, HAPRequest_t const* hap_req)
|
||||
static HAPResponse_t* pairing_setup_write_cb (HAPCharacteristic* chr, ble_gatts_evt_write_t const* gatt_req, HAPRequest_t const* hap_req)
|
||||
{
|
||||
VERIFY(gatt_req->len > 3, NULL);
|
||||
|
||||
|
||||
Reference in new issue
Block a user