Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

cc2541 SimpleBLEBroadcaster广播问题

$
0
0

在使用cc2541 SimpleBLEBroadcaster例子的时候,想让其开机后自动广播一段时间,就停止广播,发现无法停止广播。

修改参数:

// By setting this to zero, the device will go into the waiting state after
// being discoverable for 30.72 second, and will not being advertising again
// until the enabler is set back to TRUE
uint16 gapRole_AdvertOffTime = 10000;

发现10s后不能停止广播;

另外设置GAP_SetParamValue(TGAP_LIM_ADV_TIMEOUT, 10),也不能停止广播。

广播模式设置为:GAP_ADTYPE_ADV_DISCOVER_IND

GAPRole_SetParameter( GAPROLE_ADV_EVENT_TYPE, sizeof( uint8 ), &advType );

请问这是为什么呢?


Viewing all articles
Browse latest Browse all 7485

Trending Articles