static uint8_t advertData_ext[] = {
0x40,
GAP_ADTYPE_MANUFACTURER_SPECIFIC,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03,0x04,
0x01,0x02,0x03
};
{ //扩展广播...
uint8 adv_type;
adv_type = GAP_ADTYPE_EXT_NONCONN_NONSCAN_UNDIRECT;
GAPRole_SetParameter( GAPROLE_ADVERT_DATA, sizeof( advertData_ext ), advertData_ext ); //设置扩展广播
GAPRole_SetParameter(GAPROLE_ADV_EVENT_TYPE,sizeof(uint8_t),&adv_type);
// GAP_SetParamValue(TGAP_ADV_SECONDARY_PHY,GAP_PHY_VAL_LE_CODED); //125K
// GAP_SetParamValue(TGAP_ADV_PRIMARY_PHY, GAP_PHY_VAL_LE_CODED);//125K
}
标签:PHY,0x04,扩展,0x01,0x02,0x03,广播,GAP From: https://www.cnblogs.com/gscw/p/17541316.html