- #define SDP_ATTRIBUTE_NAME 0x0000
- #define SDP_ATTRIBUTE_DESCRIPTION 0x0001
- #define SDP_ATTRIBUTE_PROVIDER 0x0002
- #define SDP_ATTRIBUTE_AVAILABILITY 0x0008
-
- /** Size of a full 128 bit UUID, in bytes */
- #define UUID_SIZE_BYTES 16
-
- /** First 96 bits common to all standadized Bluetooth services */
- #define BASE_96BIT_UUID 0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00
-
- /** Defines a service attribute as a string of characters.
- *
- * \param name Name of the attribute (used to identify the attribute variable only)
- * \param string String of characters to associate with the attribute
- */
- #define SERVICE_ATTRIBUTE_TEXT(name, string) SERVICE_ATTRIBUTE_LEN8(name, SDP_DATATYPE_String, sizeof(string), string)
-
- /** Defines a service attribute with a contents that can fit into an 8-bit integer.
- *
- * \param name Name of the attribute (used to identify the attribute variable only)
- * \param type Type of attribute contents, a value from the \ref ServiceDiscovery_DataTypes_t enum
- * \param size Size of the data, in bytes
- * \param ... Data to associate with the attribute
- */
- #define SERVICE_ATTRIBUTE_LEN8(name, type, size, ...) const ServiceAttributeData8Bit_t name PROGMEM = \
- {.Header = (type | 5), .Size = size, .Data = __VA_ARGS__}