static uint8 advertData[] =
{
0x02, // length of first data structure (2 bytes excluding length byte)
GAP_ADTYPE_FLAGS, // AD Type = Flags
DEFAULT_DISCOVERABLE_MODE | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,
// service UUID, to notify central devices what services are included// in this peripheral0x05, // length of second data structure (7 bytes excluding length byte)
GAP_ADTYPE_16BIT_MORE, // list of 16-bit UUID's available, but not complete list
LO_UINT16( WECHAT_SERV_UUID ), //Wechat Service
HI_UINT16( WECHAT_SERV_UUID ),
LO_UINT16( xxx_SERV_UUID ), //Custom Service
HI_UINT16( xxx_SERV_UUID ),
0x09,
GAP_ADTYPE_MANUFACTURER_SPECIFIC,
/*厂商信息,可填0*/0x00,
0x00,
/*设备MAC地址,需程序运行时填充 (6 Bytes)*/0,0,0,0,0,0
};