This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

To process the data fetched through scanning

So , I have been fetching the customized packets through scanning . I managed to pickup the data from the structure 

typedef struct
{
uint8_t *p_data; /**< Pointer to the data buffer provided to/from the application. */
uint16_t len; /**< Length of the data buffer, in bytes. */
} ble_data_t;

I am able to print the hex data using the above structure using the code below , 

for (int i = 0 ;i<3; i++){

printf("%02x",*(&(p_adv_report->data.p_data[8+i])));

}

Ouput = 74616761

0x02010417FF59000A74616761000000C84000200700000000000000 this is the data packet I get. I want to check if data mentioned in red is color is availble in fetched data packet; however, I am able to print the hex code but i dont know how to check for hex code or its equivalent string "taga" in every packets. Could someone help me out regarding this.Rather than using custom filters I would like to convert the dat to string or some other form to compare the dat if possible  Thanks , in advance to the ideas you share .

Parents Reply Children
No Data
Related