entering security M3 state
This commit is contained in:
1 parent
c292b39f51
commit
99e9d2e36b
2 files changed
+4
-7
No files matched your search
@@ -67,7 +67,7 @@ HAPCharacteristic::HAPCharacteristic(BLEUuid bleuuid, uint8_t format, uint16_t u
|
||||
_hap_wr_cb = NULL;
|
||||
|
||||
// Need at least decent length for HAP Procedure
|
||||
_max_len = 100;
|
||||
_max_len = 64;
|
||||
|
||||
setPresentationFormatDescriptor(format, 0, unit, 1, 0);
|
||||
}
|
||||
@@ -111,9 +111,6 @@ err_t HAPCharacteristic::begin(void)
|
||||
const char* temp_usr = _usr_descriptor;
|
||||
_usr_descriptor = NULL;
|
||||
|
||||
// FIXME temporary
|
||||
_max_len = minof(_max_len, 100);
|
||||
|
||||
VERIFY_STATUS( BLECharacteristic::begin() );
|
||||
VERIFY_STATUS( _addChrIdDescriptor() );
|
||||
|
||||
@@ -317,7 +314,7 @@ void HAPCharacteristic::_eventHandler(ble_evt_t* event)
|
||||
}
|
||||
|
||||
LOG_LV2("HAP", "Response: Control = 0x%02X, TID = 0x%02X, Status = %d", hap_resp->header.control, hap_resp->header.tid, hap_resp->header.status);
|
||||
// LOG_LV2_BUFFER(NULL, hap_resp, reply.params.write.len);
|
||||
LOG_LV2_BUFFER(NULL, hap_resp, reply.params.write.len);
|
||||
err_t err = sd_ble_gatts_rw_authorize_reply(conn_hdl, &reply);
|
||||
|
||||
rtos_free(hap_resp);
|
||||
|
||||
@@ -165,7 +165,7 @@ err_t HAPPairing::begin(void)
|
||||
VERIFY_STATUS( _setup.begin() );
|
||||
|
||||
_verify.setHapProperties(HAP_CHR_PROPS_READ | HAP_CHR_PROPS_WRITE);
|
||||
_verify.setMaxLen(BLE_GATTS_VAR_ATTR_LEN_MAX);
|
||||
_verify.setMaxLen(100/*BLE_GATTS_VAR_ATTR_LEN_MAX*/); // FIXME change later
|
||||
VERIFY_STATUS( _verify.begin() );
|
||||
|
||||
_features.setHapProperties(HAP_CHR_PROPS_READ);
|
||||
@@ -219,7 +219,7 @@ static HAPResponse_t* pairing_setup_write_cb (HAPCharacteristic* chr, ble_gatts_
|
||||
|
||||
bool is_write_resp = false;
|
||||
|
||||
// TODO HAP Fragmentation
|
||||
// TODO HAP Fragmentation for packet > 512
|
||||
|
||||
// Parse TLV data
|
||||
while (body_len)
|
||||
|
||||
Reference in new issue
Block a user