+ #define SDP_ATTRIBUTE_NAME 0x0000\r
+ #define SDP_ATTRIBUTE_DESCRIPTION 0x0001\r
+ #define SDP_ATTRIBUTE_PROVIDER 0x0002\r
+ #define SDP_ATTRIBUTE_AVAILABILITY 0x0008\r
+ \r
+ #define SDP_DATATYPE_NIL (0x00 << 3)\r
+ #define SDP_DATATYPE_UNSIGNED_INT (0x01 << 3)\r
+ #define SDP_DATATYPE_SIGNED_INT (0x02 << 3)\r
+ #define SDP_DATATYPE_UUID (0x03 << 3)\r
+ #define SDP_DATATYPE_TEXT (0x04 << 3)\r
+ #define SDP_DATATYPE_BOOLEAN (0x05 << 3)\r
+ #define SDP_DATATYPE_ELEMENT_SEQUENCE (0x06 << 3)\r
+ #define SDP_DATATYPE_ELEMENT_ALTERNATIVE (0x07 << 3)\r
+ #define SDP_DATATYPE_URL (0x08 << 3)\r
+ \r
+ #define BASE_96BIT_UUID 0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00\r
+ \r
+ #define SERVICE_ATTRIBUTE_TEXT(name, string) SERVICE_ATTRIBUTE_8BIT_LEN(name, SDP_DATATYPE_TEXT, sizeof(string), string)\r
+ #define SERVICE_ATTRIBUTE_8BIT_LEN(name, type, size, ...) const ServiceAttributeData8Bit_t name PROGMEM = \\r
+ {.Header = (type | 5), .Size = size, .Data = __VA_ARGS__}\r
+ #define SERVICE_ATTRIBUTE_16BIT_LEN(name, type, size, ...) const ServiceAttributeData16Bit_t name PROGMEM = \\r
+ {.Header = (type | 5), .Size = size, .Data = __VA_ARGS__}\r
+ #define SERVICE_ATTRIBUTE_32BIT_LEN(name, type, size, ...) const ServiceAttributeData32Bit_t name PROGMEM = \\r
+ {.Header = (type | 5), .Size = size, .Data = __VA_ARGS__}\r
+ \r