update 1.8
This commit is contained in:
@@ -649,6 +649,24 @@ static void centralEventCB(gapRoleEvent_t *pEvent)
|
||||
}
|
||||
break;
|
||||
|
||||
case GAP_EXT_ADV_DEVICE_INFO_EVENT:
|
||||
{
|
||||
// Display device addr
|
||||
PRINT("Recv ext adv \n");
|
||||
// Add device to list
|
||||
centralAddDeviceInfo(pEvent->deviceExtAdvInfo.addr, pEvent->deviceExtAdvInfo.addrType);
|
||||
}
|
||||
break;
|
||||
|
||||
case GAP_DIRECT_DEVICE_INFO_EVENT:
|
||||
{
|
||||
// Display device addr
|
||||
PRINT("Recv direct adv \n");
|
||||
// Add device to list
|
||||
centralAddDeviceInfo(pEvent->deviceDirectInfo.addr, pEvent->deviceDirectInfo.addrType);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -716,7 +734,7 @@ static void centralPasscodeCB(uint8_t *deviceAddr, uint16_t connectionHandle,
|
||||
// Display passcode to user
|
||||
if(uiOutputs != 0)
|
||||
{
|
||||
PRINT("Passcode:%d\n", (int)passcode);
|
||||
PRINT("Passcode:%06d\n", (int)passcode);
|
||||
}
|
||||
// Send passcode response
|
||||
GAPBondMgr_PasscodeRsp(connectionHandle, SUCCESS, passcode);
|
||||
|
||||
Reference in New Issue
Block a user