update
This commit is contained in:
1 parent
73648578b0
commit
5f491c5239
6 files changed
+97
-8
No files matched your search
@@ -271,7 +271,7 @@ void HAPCharacteristic::_eventHandler(ble_evt_t* event)
|
||||
hap_resp = createHapResponse(hap_req->header.tid, HAP_STATUS_INVALID_INSTANCE_ID);
|
||||
}else
|
||||
{
|
||||
LOG_LV2("HAP", "Recv %s request", hap_opcode_str[hap_req->header.opcode]);
|
||||
LOG_LV2("HAP", "Recv %s request, TID = %02X, CS_ID = %04X", hap_opcode_str[hap_req->header.opcode], hap_req->header.tid, hap_req->header.instance_id);
|
||||
switch(hap_req->header.opcode)
|
||||
{
|
||||
case HAP_OPCODE_CHR_SIGNATURE_READ:
|
||||
@@ -314,7 +314,7 @@ void HAPCharacteristic::_eventHandler(ble_evt_t* event)
|
||||
reply.params.write.gatt_status = BLE_GATT_STATUS_ATTERR_INSUF_RESOURCES;
|
||||
}
|
||||
|
||||
LOG_LV2("HAP", "Response Data");
|
||||
LOG_LV2("HAP", "Response: Control = %02X, TID = %02X, Status = %02X", hap_resp->header.control, hap_resp->header.tid, hap_resp->header.status);
|
||||
LOG_LV2_BUFFER(NULL, hap_resp, reply.params.write.len);
|
||||
err_t err = sd_ble_gatts_rw_authorize_reply(conn_hdl, &reply);
|
||||
|
||||
|
||||
Reference in new issue
Block a user