TwclGattLocalCharacteristicRequest.HalRespondWithError(Integer) Method
Responds to the request with an error.
protected function HalRespondWithError( const Error: Integer): Integer; virtual; abstract;
Parameters
- Error
- Type: Integer
The GATT operation error code.
Return Value
If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
A derived class must override this method to provide hardware dependent code that sends a error respond.
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 wclErrors.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:
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INVALID_HANDLE
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_READ_NOT_PERMITTED
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_WRITE_NOT_PERMITTED
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INVALID_PDU
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INSUFFICIENT_AUTHENTICATION
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_REQUEST_NOT_SUPPORTED
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INVALID_OFFSET
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INSUFFICIENT_AUTHORIZATION
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_PREPARE_QUEUE_FULL
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_ATTRIBUTE_NOT_FOUND
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_ATTRIBUTE_NOT_LONG
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INSUFFICIENT_ENCRYPTION_KEYSIZE
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INVALID_ATTRIBUTE_VALUE_LENGTH
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_UNLIKELY
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INSUFFICIENT_ENCRYPTION
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_UNSUPPORTED_GROUP_TYPE
wclBluetoothErrors.WCL_E_BLUETOOTH_LE_INSUFFICIENT_RESOURCES