While scanning in BLE central, there are two related events in simpleBLECentralProcessGATTMsg()
The first is GAP_DEVICE_INFO_EVENT, There the address of the device that is saved is taken from:
pEvent->deviceInfo.addr. This address match the address of the device.
On the second relevant event GAP_DEVICE_DISCOVERY_EVENT that is fired at the end of the scan period
the entire captured data is copied from the pEvent->discCmpl.pDevList. However Here the address of the device is only partially correct:
The correct address: 7C 66 9D 9B 30 22 (captured in the GAP_DEVICE_INFO_EVENT)
The wrong address: 80 62 7C 66 9D 9B (copied at the end of the discovery)
What's going on ?
BLE stack 1.4.0
Server: simpleBlePeriferal
Client: SimpleBleCentral