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

Related