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

how i get &scanrsp data on nrf52832 as central

Hi:

I set up a peripheral on nrf52832 and add beacon_info data as Manufacturer specific information。The version of softdevice is s132.

memset(&scanrsp, 0, sizeof(scanrsp));
scanrsp.p_manuf_specific_data   = &manuf_specific_data;
err_code = ble_advertising_init(&advdata, &scanrsp, &options, on_adv_evt, NULL);

Then I set up a central on an other nrf52832 device . I can read device name in callback function:

     static void on_ble_central_evt(const ble_evt_t * const p_ble_evt)

But I cannot read Manufacturer specific information advertising as scanrsp data.

    case BLE_GAP_EVT_ADV_REPORT:
    {
        uint32_t err_code;

        if (strlen(m_target_periph_name) != 0)
        {
            if (find_adv_name(&p_gap_evt->params.adv_report, m_target_periph_name))
            {
					ScoreSensorSta  = 1;
            }
			
            if (find_adv_manufacture_data(&p_gap_evt->params.adv_report);)
            {
					ScoreSensorSta  = 2;
            }				
        }
       }

But the information can read on my Huawei andriod Phone.I think maybe it's in another callback function.All feedback that could help me is greatly appreciated.

Parents Reply Children
No Data
Related