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

Devicename / UART / Companyinformation

Hello,

i would like do Output over UART (printf) the UUID and the DeviceName.

I have the scanning data p_gap_evt->params.adv_report.data

When i would like to get the Company data from the p_gap_evt->params.adv_report.data

p_gap_evt->params.adv_report.data[0xff] this contan 31 element.

But how can i now Output this 31 element over UART.

Thanks for help

  • Like this?

    printf("data: ");
    for(int i = 0; i < p_gap_evt->params.adv_report.dlen; i++)
    {
        printf("0x%x\t", p_gap_evt->params.adv_report.data[i]);
    }
    printf("\n");