TI中文支持网
TI专业的中文技术问题搜集分享网站

macos does not show correct icon with the appearance value of advertising PDU .

Dear sir,

i add the appearance section value to  my advertising PDU,

1) on windows 10 , the os represent the correct icon to me

2) on osx, the os show the incorrect icon to me ,but a normal bluetooth icon .

i need help, thank you !

——————————————————————-

my adv code:

// Advertising data
static uint8 advData[] =
{
// flags
0x02, // length of this data
GAP_ADTYPE_FLAGS,
GAP_ADTYPE_FLAGS_LIMITED | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,

// appearance
0x03, // length of this data
GAP_ADTYPE_APPEARANCE,
LO_UINT16(GAP_APPEARE_HID_MOUSE),
HI_UINT16(GAP_APPEARE_HID_MOUSE),

// service UUIDs
0x05, // length of this data
GAP_ADTYPE_16BIT_MORE,
LO_UINT16(HID_SERV_UUID),
HI_UINT16(HID_SERV_UUID),
LO_UINT16(BATT_SERV_UUID),
HI_UINT16(BATT_SERV_UUID),
// Tx power level
0x02, // length of this data
GAP_ADTYPE_POWER_LEVEL,
0, // 0dBm
};

Minkai Gu:

Minkai Gu:

回复 Minkai Gu:

赞(0)
未经允许不得转载:TI中文支持网 » macos does not show correct icon with the appearance value of advertising PDU .
分享到: 更多 (0)