- /** 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__}
-
- /** Defines a service attribute with a contents that can fit into an 16-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_LEN16(name, type, size, ...) const ServiceAttributeData16Bit_t name PROGMEM = \
- {.Header = (type | 6), .Size = size, .Data = __VA_ARGS__}
-
- /** Defines a service attribute with a contents that can fit into an 32-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_LEN32(name, type, size, ...) const ServiceAttributeData32Bit_t name PROGMEM = \
- {.Header = (type | 7), .Size = size, .Data = __VA_ARGS__}
-