Bluetooth Framework C++ Edition

◆ RespondWithError()

virtual int RespondWithError ( const int  Error)
virtual

Responds to the request with an error.

Parameters
ErrorThe GATT operation error code.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

An application must call this method in case if there is an error appeared during request processing. The Error is one of the Wireless Communication Library GATT error.

The WCL_E_INVALID_ARGUMENT result indicates that the error code passed to the method is not one from the GATT errors list.

Valid error codes are:

WCL_E_BLUETOOTH_LE_INVALID_HANDLE

WCL_E_BLUETOOTH_LE_READ_NOT_PERMITTED

WCL_E_BLUETOOTH_LE_WRITE_NOT_PERMITTED

WCL_E_BLUETOOTH_LE_INVALID_PDU

WCL_E_BLUETOOTH_LE_INSUFFICIENT_AUTHENTICATION

WCL_E_BLUETOOTH_LE_REQUEST_NOT_SUPPORTED

WCL_E_BLUETOOTH_LE_INVALID_OFFSET

WCL_E_BLUETOOTH_LE_INSUFFICIENT_AUTHORIZATION

WCL_E_BLUETOOTH_LE_PREPARE_QUEUE_FULL

WCL_E_BLUETOOTH_LE_ATTRIBUTE_NOT_FOUND

WCL_E_BLUETOOTH_LE_ATTRIBUTE_NOT_LONG

WCL_E_BLUETOOTH_LE_INSUFFICIENT_ENCRYPTION_KEYSIZE

WCL_E_BLUETOOTH_LE_INVALID_ATTRIBUTE_VALUE_LENGTH

WCL_E_BLUETOOTH_LE_UNLIKELY

WCL_E_BLUETOOTH_LE_INSUFFICIENT_ENCRYPTION

WCL_E_BLUETOOTH_LE_UNSUPPORTED_GROUP_TYPE

WCL_E_BLUETOOTH_LE_INSUFFICIENT_RESOURCES

Reimplemented in CwclGattLocalCharacteristicWriteRequest.