dotstack API Reference
1.10.37
|
The attribute protocol allows a device referred to as the server to expose a set of attributes and their associated values to a peer device referred to as the client. More...
Modules | |
ATT Server | |
This module describes functions and data structures used to implement an ATT server (peripheral). | |
ATT Client | |
This module describes functions and data structures used to implement an ATT client (central). | |
Error Codes | |
#define | ATT_ERROR_SUCCESS 0x00 |
The operation completed with no errors. | |
#define | ATT_SUCCESS 0x00 |
The operation completed with no errors. | |
#define | ATT_ERROR_INVALID_HANDLE 0x01 |
The attribute handle given was not valid on this server. | |
#define | ATT_ERROR_READ_NOT_PERMITTED 0x02 |
The attribute cannot be read. | |
#define | ATT_ERROR_WRITE_NOT_PERMITTED 0x03 |
The attribute cannot be written. | |
#define | ATT_ERROR_INVALID_PDU 0x04 |
The attribute PDU was invalid. | |
#define | ATT_ERROR_INSUFFICIENT_AUTHENTICATION 0x05 |
The attribute requires authentication before it can be read or written. | |
#define | ATT_ERROR_REQUEST_NOT_SUPPORTED 0x06 |
Attribute server does not support the request received from the client. | |
#define | ATT_ERROR_INVALID_OFFSET 0x07 |
Offset specified was past the end of the attribute. | |
#define | ATT_ERROR_INSUFFICIENT_AUTHORIZATION 0x08 |
The attribute requires authorization before it can be read or written. | |
#define | ATT_ERROR_PREPARE_QUEUE_FULL 0x09 |
Too many prepare writes have been queued. | |
#define | ATT_ERROR_ATTRIBUTE_NOT_FOUND 0x0A |
No attribute found within the given attribute handle range. | |
#define | ATT_ERROR_ATTRIBUTE_NOT_LONG 0x0B |
The attribute cannot be read or written using the Read Blob Request. | |
#define | ATT_ERROR_INSUFFICIENT_ENCRYPTION_KEY_SIZE 0x0C |
The Encryption Key Size used for encrypting this link is insufficient. | |
#define | ATT_ERROR_INVALID_ATTRIBUTE_VALUE_LENGTH 0x0D |
The attribute value length is invalid for the operation. | |
#define | ATT_ERROR_UNLIKELY_ERROR 0x0E |
The attribute request that was requested has encountered an error. More... | |
#define | ATT_ERROR_INSUFFICIENT_ENCRYPTION 0x0F |
The attribute requires encryption before it can be read or written. | |
#define | ATT_ERROR_UNSUPPORTED_GROUP_TYPE 0x10 |
The attribute type is not a supported. More... | |
#define | ATT_ERROR_INSUFFICIENT_RESOURCES 0x11 |
Insufficient Resources to complete the request. | |
#define | ATT_ERROR_INVALID_TRANSPORT 0x80 |
#define | ATT_ERROR_CLIENT_CHAR_CONFIG_INVALID 0xFD |
Client Characteristic Configuration Descriptor Improperly Configured. | |
#define | ATT_ERROR_PROCEDURE_IN_PROGRESS 0xFE |
Procedure Already in Progress. | |
#define | ATT_ERROR_OUT_OF_RANGE 0xFF |
Out of Range. | |
The attribute protocol allows a device referred to as the server to expose a set of attributes and their associated values to a peer device referred to as the client.
These attributes exposed by the server can be discovered, read, and written by a client, and can be indicated and notified by the server.
#define ATT_ERROR_UNLIKELY_ERROR 0x0E |
The attribute request that was requested has encountered an error.
that was unlikely, and therefore could not be completed as requested.
#define ATT_ERROR_UNSUPPORTED_GROUP_TYPE 0x10 |
The attribute type is not a supported.
grouping attribute as defined by a higher layer specification.