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

BLE Mesh Model for user data transfer

Hi Nordic team,

We have planned to use nRF5340 based BLE mesh device which is interface with sensor 

We would like to transfer customized user data from one node to another node at different location via BLE mesh network. 

Shall we use Generic On/Off model for this user data transfer from one node to another node through BLE mesh?

If yes, what is the maximum possible size of user data to transfer?

Shall we use the "Mesh light (as Server) " and Mesh light switch (As client) sample for this use case?

Thanks

Selvam

  • Hi Selvam, 

    The particular chat example use the SHELL module to handle UART communication to allow chat experience. 
    If you want to send your own data without any UART you would need to have a look at the model_hanlder.c and see how the message is send and received. 
    For example calling function cmd_message() will send a message on the chat client  (bt_mesh_chat_cli_message_send() ) 

    When there is a message arrived, the handle_message() function in chat_cli.c will call chat->handlers->message(chat, ctx, msg) which is the handle_chat_message() function in model_handler.c to print out the message. 

    Note that this is just an example, you can just use this chat_cli.c model as a refering source and build your own client or server. Please follow the guide here.

Related