I am getting get BLE_EVT_USER_MEM_REQUEST and BLE_GAP_EVT_CONN_PARAM_UPDATE event, when writing to ble device, sample code did not handle these event, and seems no document about what should we do about it, I also found
/**@brief Provide a user memory block. *
- @note This call can only be used as a response to a @ref BLE_EVT_USER_MEM_REQUEST event issued to the application.
- @param[in] conn_handle Connection handle.
- @param[in] p_block Pointer to a user memory block structure.
- @return @ref NRF_SUCCESS Successfully queued a response to the peer.
- @return @ref BLE_ERROR_INVALID_CONN_HANDLE Invalid Connection Handle.
- @return @ref NRF_ERROR_INVALID_STATE No execute write request pending. */ SVCALL(SD_BLE_USER_MEM_REPLY, uint32_t, sd_ble_user_mem_reply(uint16_t conn_handle, ble_user_mem_block_t *p_block));
does it mean we should call the above method for BLE_EVT_USER_MEM_REQUEST? or this is event we can safely ignore?
on android side, I am getting onCharacteristicWrite callback with status = 133, according to the function: /** * Callback indicating the result of a characteristic write operation. * *
If this callback is invoked while a reliable write transaction is * in progress, the value of the characteristic represents the value * reported by the remote device. An application should compare this * value to the desired value to be written. If the values don't match, * the application must abort the reliable write transaction. * * @param gatt GATT client invoked {@link BluetoothGatt#writeCharacteristic} * @param characteristic Characteristic that was written to the associated * remote device. * @param status The result of the write operation * {@link BluetoothGatt#GATT_SUCCESS} if the operation succeeds. */ public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {
this 133 value is reported by ble device, where to look for what does it means?