mirror of https://github.com/ARMmbed/mbed-os.git
Fix BLE long write execution failure
parent
67ba976b30
commit
1cb1a49752
|
@ -664,6 +664,7 @@ void nRF5xGattServer::hwCallback(const ble_evt_t *p_ble_evt)
|
||||||
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
|
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
|
||||||
* request is to proceed. */
|
* request is to proceed. */
|
||||||
};
|
};
|
||||||
|
characteristicIndex = resolveValueHandleToCharIndex(req->attr_handle);
|
||||||
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
|
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
|
||||||
|
|
||||||
// the user code didn't provide the write authorization,
|
// the user code didn't provide the write authorization,
|
||||||
|
|
|
@ -670,6 +670,7 @@ void nRF5xGattServer::hwCallback(const ble_evt_t *p_ble_evt)
|
||||||
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
|
* set to AUTH_CALLBACK_REPLY_SUCCESS if the client
|
||||||
* request is to proceed. */
|
* request is to proceed. */
|
||||||
};
|
};
|
||||||
|
characteristicIndex = resolveValueHandleToCharIndex(req->attr_handle);
|
||||||
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
|
uint16_t write_authorization = p_characteristics[characteristicIndex]->authorizeWrite(&cbParams);
|
||||||
|
|
||||||
// the user code didn't provide the write authorization,
|
// the user code didn't provide the write authorization,
|
||||||
|
|
Loading…
Reference in New Issue