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
  • I believe the problem is the Mesh need to wait for ack of the config_client_model_subscription_overwrite message.

    While my thread is still not release, and already want to fire another config_client_model_subscription_overwrite request.

    So, i should build up some callback issue.

    May be i should consider to build a function like simple_on_off_client_GroupAdderss_Set().

Reply
  • I believe the problem is the Mesh need to wait for ack of the config_client_model_subscription_overwrite message.

    While my thread is still not release, and already want to fire another config_client_model_subscription_overwrite request.

    So, i should build up some callback issue.

    May be i should consider to build a function like simple_on_off_client_GroupAdderss_Set().

Children
Related