Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Grouping device in Mesh

I tried to assigned each device to different group(subscriptions) by the following code segment.

    for (uint16_t i=0; i < devCnt; i++) {

......

      ERROR_CHECK(config_client_server_set(m_devkey_handles[client_idx],m_server_handles[client_idx]));      
      ERROR_CHECK(config_client_model_subscription_overwrite(element_address, address, model_id));

}

The above routine is triggered by an Android BLE App, thru nus_data_handler

But it is found that the Mesh/BLE stack will no longer response, after i set successfully for the first device, and just hanged there at the second device.

Dose there any constraint on the sequence on calling the above routine?

If by BLE do the device one by one, it is absolutely okay., Why?

Regards,

Ajay

Parents Reply
  • Yes, the provision is already done.

    What i want to do is just update the group subscriptions via a BLE command from Android app

    On the Bluetooth Mesh Side.

    I already have a device as a client (As a provisioner, and manager the group info of the Mesh network.)

    and 3Servers already provisioned with the client. They by default will be assigned to the subscription address of 0xCAFE.

    Now, what i want to is, when the client receive an BLE command, then it will assigned the servers to the Group accordingly.

Children
Related