我一开始看了micro_eddystone_beacon_cc2640r2lp_app这个例程,发现里面有可以控制广播的API :ugap_bcastStart和ugap_bcastStop,
现在开发的是基于SimpleBLEbroadcaster的例程,请问里面关于控制广播开关的API函数是什么?谢谢回答
Kevin Qiu1:
uint8_t advertEnabled = FALSE; // Turn on Advertising
// Disable connectable advertising.
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t),
&advertEnabled);