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

How can I get the number of nodes (or devices) in the mesh network?

Hi there.

This is my first time to utilize BLE mesh of NRF5.

I just wonder that the library supports getting the number of nodes in the mesh network.

When utilizing the ble central and ble peripheral, getting rssi or physical address can be easily done

by using library for example, sd_ble_gap_rssi_get(m_conn_handle,&p_rssi,&p_ch_index)

Is there a fuction getting the number of existing nodes in the mesh network?

Parents Reply
  • Thanks, BinderT

    As you stated, I understand that only the provisioned device in the mesh network knows which devices have been configured into the mesh network.

    Then, which function or structure includes the number of devices?

    /**
     * Retrieves stored device state manager configuration.
     * The number of provisioned devices is calculated from the number of device keys stored. The device
     * key for each server is stored on provisioning complete in the `provisioner_prov_complete_cb()`.
     *
     * @returns Number of provisioned devices.
     */
    static uint16_t provisioned_device_handles_load(void)
    {
        uint16_t provisioned_devices = 0;
    }

    I was not able to find the function provisioned_device_handles_load(void) in the mesh example and

    the code above seems returns 0 all the time. 

Children
No Data
Related