Other Parts Discussed in Thread: CC2640
For the CC2640 BLE chip i am using the simpleBLECentral example project.
For starting the discovery i am using the code
GAPCentralRole_StartDiscovery(DEFAULT_DISCOVERY_MODE,
DEFAULT_DISCOVERY_ACTIVE_SCAN,
DEFAULT_DISCOVERY_WHITE_LIST);
1. After this call whether i will get two times the event GAP_DEVICE_INFO_EVENT (i.e first event after the advertisement detection and the second event after receiving the scan response) when a device is detected (since i have initiated active scan )
2. If above is true can we differentiate the reason for GAP_DEVICE_INFO_EVENT (i.e whether due to advertisement detection or due to reception of scan response) using the variable gapDeviceInfoEvent_t->eventType in the function SimpleBLECentral_processRoleEvent?