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

Nrfconnect stops scanning after some time interval when I run ble_app_beacon example on nrf52832 . How do I change my code so that the nrfconnect app scans beacons indefinitely

I  am using nrf52832 dev board .  I have used the example code of ble_app_beacon code . I am able to send my data through the beacon. But while using nrfconnect app, the scanning stops after few seconds. I want the nrfconnect app to scan the real time data which I am passing through the beacon indefinitely. 

How do I reduce the manuf_specific_data length  in ble_app_beacon example. ? Is it ok to change the length of manuf_specific_data with respect to beacon example ?

Parents
  • Hi.

    I'm afraid that there isn't any changes you can do in the nRF Connect app to make it scan continuously. If that is what you want, you'll need to create your own application.

     

    How do I reduce the manuf_specific_data length  in ble_app_beacon example. ?

     

        ble_advdata_manuf_data_t manuf_specific_data;
    
        manuf_specific_data.company_identifier = APP_COMPANY_IDENTIFIER;
        manuf_specific_data.data.p_data = (uint8_t *) m_beacon_info;
        manuf_specific_data.data.size   = APP_BEACON_INFO_LENGTH;

    There is a very own variable for the manuf_specific_data lenght, which is the total length of information advertised by the Beacon.

    You can change the content of the advertising data, or the lenght just as you please. Note that the advertising packet can not exceed 31 bytes of data.

    Best regards,
    Joakim

  • Hi,

    I'm afraid that there isn't any changes you can do in the nRF Connect app to make it scan continuously. If that is what you want, you'll need to create your own application.

    There was an option in nrf connect that lets us scan indefinitely. I finally got it. 

Reply Children
Related