Fix BLE long write execution failure

pull/9143/head
Desmond Chen 2018-12-18 15:20:52 -08:00
parent 06748af2f8
commit 30ca813f07
2 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,7 @@ void nRF5xGattServer::hwCallback(const ble_evt_t *p_ble_evt)
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
* request is to proceed. */
};
characteristicIndex = resolveValueHandleToCharIndex(req->attr_handle);
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
// the user code didn't provide the write authorization,

View File

@ -670,6 +670,7 @@ void nRF5xGattServer::hwCallback(const ble_evt_t *p_ble_evt)
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
* request is to proceed. */
};
characteristicIndex = resolveValueHandleToCharIndex(req->attr_handle);
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
// the user code didn't provide the write authorization,