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

I am able to provision the device. But not able to get the composition data.

Hi, I am trying the to create a mesh application using iOS nRFMESH SDK. I am able to provision the device but i am not able to get data from the getCompositionData method.

The MeshNetworkDelegate always returns to below method.

func meshNetworkManager(_ manager: MeshNetworkManager,

                            failedToSendMessage message: MeshMessage,

                            from localElement: Element, to destination: Address,

                            error: Error) { }

Not sure what error i have done. On high level i have checked for node.isCompositionDataReceived which in turn moves to getCompositionData which is always giving error in ConfigurationViewController.

Parents Reply
  • How to open the bearer before getting the compositionData? Logs shows that bearer is closed. 

    It first shows request timed out as bearer is closed. Later after some time, centralManager delegate is called in and bearer opens and sends the data to getCompositionData. But the message received doesnot come under any of the switch case in ConfigurationViewController MeshNetworkDelegate which should have been ConfigCompositionDataStatus.

    in sample app - Once the provisioning method is called and provisioning is complete, bearer closes and again centralManager delegate is called along with its methods. But when sdk is used, it doesnot call the centralManager delegate which is only called in the viewDidAppear of the ConfigurationViewController.

Children
No Data
Related