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

Send a string of characters over Mesh v4

Hi community !
I saw a lot of topic about that but i'm working with SDK_Mesh_v4 and i don't get what i want.
Does someone have a working example of sending string over Mesh (doesn't matter if it's with SDK_Mesh_V1 or V4 because i will adapt it) ?

Sincerely

PG

  • Hi PG, 

    I would suggest to first try to use the simple_on_off model in \models\vendor in a project. The model allow you to send one byte from the client to the sever to turn off or on the light. 
    If that works, you can start modifying the simple_on_off_msg_set_t or simple_on_off_msg_set_unreliable_t struct inside simple_on_off_common.h to add an array to the struct. 
    It's the string array you can send. 
    But please be aware that Bluetooth Mesh is not designed to send a large amount of data. Payload >11bytes will be segmented to multiple packages and that would cause quite a lot of over head, reducing the throughput of the network. 

  • Hi

    I am able to do this with the vendor model. But now i am unable to subscribe the group from my server in nrf mesh app. It shows "not a subscription model". How can i proceed now. Kindly help me to complete this task.

    Thanks

    Anuprit

Related