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

how to get the data on server side in mesh

hi ...

I am working on mesh 3.1 version . I have used light switch example . In this case , i am sending the character in generic_onoff_set_cb , and changed from bool to character on client side . Now what are the change on server side , in order  to get the character from client to server . on server side i need to get the same data . 

Thanks

pspavi

Parents Reply Children
  • Hi,

    My mistake, you would need to make some changes on the server side too, to be able to send string/integer to the server. Did you have a look at the links that Joakim mentioned in your other case?

    It included a custom simple_message model example that will let you send a string over the mesh network. It is made for Mesh SDK v1.0.0 but I suggest you to use the example application as a reference/guidance on how you can make a custom model for Mesh SDK 3.1.0, that let you send a string/integer.

    Here is documentation on how to create a model.

    Also have a look at this, it might be of help.

Related