mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9143 from desmond-blue/fix_ble_longwrite
Fix BLE long write execution failurepull/9173/head
commit
911720e50b
|
|
@ -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