Reference is here:https://www.bluetooth.com/specification ... format.xml
Code: Select all
typedef struct
{
uint8_t _format;
int8_t _exponent;
uint16_t _unit;
uint8_t _namespace;
uint16_t _description;
} presentation_t;
Code: Select all
static presentation_t utf8_presentation =
{
._format=25,
._exponent=0,
._unit=0,
._namespace=0,
._description=0,
};
Code: Select all
[USAGE_IDX_DISPLAY_STRING_CFG_1] =
{{ESP_GATT_AUTO_RSP}, {ESP_UUID_LEN_16, (uint8_t *)&usage_character_char_presentation_uuid, ESP_GATT_PERM_READ,
sizeof(utf8_presentation),sizeof(utf8_presentation), (uint8_t *)&utf8_presentation}}