Part Number:SIMPLELINK-CC26X2-SDK
Tool/software: Code Composer Studio
Hello
Im trying out the simple_central example in simplelink_cc26x2_sdk_2_30_00_34
The aim is to read bluetooth EIR raw data from an advertiser. So basically i just need the simple_central in observer mode.
I can discover the advertiser, and i made a copy of the data received from GapScan_getAdvReport(i, &advRpt);
Here is the srtuct:
/// Event for advertising report
typedef struct {
/**
* Bits 0 to 4 indicate connectable, scannable, directed, scan response, and
* legacy respectively
*/
uint8_t evtType;
/// Public, random, public ID, random ID, or anonymous
GAP_Addr_Types_t addrType;
/// Address of the advertising device
uint8_t addr[B_ADDR_LEN];
/// PHY of the primary advertising channel
GapScan_ScannedPhy_t primPhy;
/// PHY of the secondary advertising channel
GapScan_ScannedPhy_t secPhy;
/// SID (0x00-0x0f) of the advertising PDU. 0xFF means no ADI field in the PDU
uint8_t advSid;
/// -127 dBm <= TX power <= 126 dBm
int8_t txPower;
/// -127 dBm <= RSSI <= 20 dBm
int8_t rssi;
/// Type of TargetA address in the directed advertising PDU
GAP_Addr_Types_t directAddrType;
/// TargetA address
uint8_t directAddr[B_ADDR_LEN];
/// Periodic advertising interval. 0 means no periodic advertising.
uint16_t periodicAdvInt;
/// Length of the data
uint16_t dataLen;
/// Pointer to advertising or scan response data
uint8_t *pData;
} GapScan_Evt_AdvRpt_t;
it seems that i get all the data in that struct after the "discover devices" process in serial terminal. However, i actually need Extended Inquire Response data. Is there a built-in mechanism in the simple_central code to specify to the advertiser that i need EIR?
All the useful data comes with EIR.