Merge pull request #9143 from desmond-blue/fix_ble_longwrite

Fix BLE long write execution failure
pull/9173/head
Martin Kojtal 2018-12-20 10:50:47 +00:00 committed by GitHub
commit 911720e50b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,