Hi All
我想將BLE addr type設定為static,但無論如何設定,
也在advertising後抓gapRole_AdvDirectType的確是ADDRTYPE_STATIC,
外部ble 連線後,抓到的仍是public type
是否有其它地方需要設定??
試過sample code:Glucose sensor, SimpleBLEPeripheral
<修改>
gapRole_init()
{
……
gapRole_AdvDirectType = ADDRTYPE_STATIC; //before:ADDRTYPE_PUBLIC;
}
gapRole_processGAPMsg()
{
switch(pMsg->opcode)
{
case GAP_DEVICE_INIT_DONE_EVENT:
…..
GAP_ConfigDeviceAddr(ADDRTYPE_STATIC, bdAddress);
gapRole_state = GAPROLE_STARTED;
…..
}
Viki Shi:
在GAP_DEVICE_INIT_DONE_EVENT后调用GAP_ConfigDeviceAddr
kuo austin:
回复 Viki Shi:
Hi Viki Shi
您好,已有加GAP_ConfigDeviceAddr了,在上面留言的第二行紅字