BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
Enumerations
bluetoe::error_codes Namespace Reference

Enumerations

enum  error_codes : std::uint8_t {
  success = 0x00 , invalid_handle = 0x01 , read_not_permitted , write_not_permitted ,
  invalid_pdu , insufficient_authentication , request_not_supported , invalid_offset ,
  insufficient_authorization , prepare_queue_full , attribute_not_found , attribute_not_long ,
  insufficient_encryption_key_size , invalid_attribute_value_length , unlikely_error , insufficient_encryption ,
  unsupported_group_type , insufficient_resources , application_error_start = 0x80 , application_error_end = 0x9f ,
  out_of_range = 0xff , procedure_already_in_progress = 0xfe , cccd_improperly_configured = 0xfd
}
 Error codes to be returned by read and write handlers for characteristic values. More...
 

Detailed Description

namespace for error codes, that should be convertable to int

Enumeration Type Documentation

◆ error_codes

enum bluetoe::error_codes::error_codes : std::uint8_t

Error codes to be returned by read and write handlers for characteristic values.

Enumerator
success 

read or write request could be fulfilled without an error

invalid_handle 

The attribute handle given was not valid on this server.

read_not_permitted 

The attribute cannot be read.

write_not_permitted 

The attribute cannot be written.

invalid_pdu 

The attribute PDU was invalid.

insufficient_authentication 

The attribute requires authentication before it can be read or written.

request_not_supported 

Attribute server does not support the request received from the client.

invalid_offset 

Offset specified was past the end of the attribute.

insufficient_authorization 

The attribute requires authorization before it can be read or written.

prepare_queue_full 

Too many prepare writes have been queued.

attribute_not_found 

No attribute found within the given attri- bute handle range.

attribute_not_long 

The attribute cannot be read or written using the Read Blob Request.

insufficient_encryption_key_size 

The Encryption Key Size used for encrypting this link is insufficient.

invalid_attribute_value_length 

The attribute value length is invalid for the operation.

unlikely_error 

The attribute request that was requested has encountered an error that was unlikely, and therefore could not be completed as requested.

insufficient_encryption 

The attribute requires encryption before it can be read or written.

unsupported_group_type 

The attribute type is not a supported grouping attribute as defined by a higher layer specification.

insufficient_resources 

Insufficient Resources to complete the request.

application_error_start 

Start of range for application specific error codes

application_error_end 

Last code of the range for application specific error codes

out_of_range 

The Out of Range error code is used when an attribute value is out of range as defined by a profile or service specification.

procedure_already_in_progress 

The Procedure Already in Progress error code is used when a profile or service request cannot be serviced because an operation that has been previously triggered is still in progress.

cccd_improperly_configured 

The Client Characteristic Configuration Descriptor Improperly Configured error code is used when a Client Characteristic Configuration descriptor is not configured according to the requirements of the profile or service.