customizing simpleBLEobserver for my client needs, I have trouble to fetch the advertisements data. I need to catch the data field when GAP_DEVICE_INFO_EVENT fires.
However, in pEvent->deviceInfo.pEvtData I can only find fractions of the below shown data sent in advertising while SmartRF packet sniffer shows this data correctly sent.
pEvent points to a union, and it seems to me that members of that union override the deviceInfo.pEvtData area while using other members of that union before firing the GAP_DEVICE_INFO_EVENT.
If I am right, that would be a major design bug in SimpleBLEobserver.
How to manage that issue ?
I have changed SimpleBLEbroadcaster on SensorTag hardware sending this advertising every 500ms
uint8 MyAdvertData[] =
{
0x02, // length of this data
GAP_ADTYPE_FLAGS,
GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,
0x1A, // length of this data including the data type byte
GAP_ADTYPE_MANUFACTURER_SPECIFIC, // manufacturer specific adv data type
0xFF, // default vedor identifier when no Device ID service record is present in a remote device.
0xFF, //
0x02, // Data Type - Fixed
0x15, // Data Length - Fixed
0xC4, // UUID - Variable based on different use cases/applications
0xBE, // UUID
0x84, // UUID
0x71, // UUID
0xD0, // UUID
0x02, // UUID
0x00, // UUID
0x00, // UUID
0x00, // UUID
0x00, // UUID
0x00, // UUID
0x00, // UUID
0x00, // UUID
0x00, // UUID
0x00, // UUID
0x00, // UUID
0x00, // Major
0x01, // Major
0x00, // Minor
0x01, // Minor
0xc5 // Power - The 2's complement of the calibrated Tx Power
};