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

Sending Message From Client To Server in NRF52832

SDK  Version : Mesh 4.0 & SDK_16.0
Software : Segger  Embedded Studio

Hardware : 2 PCA10040 devices as a client and a server

System : Windows 7

Hi,

I want to send a  string  from client to server.Can you please help me for the same

Parents
  • Because I can understand that "mesh_msg_handle" in access.c is receiving the message and printing it.
    But I am not understanding when to call this function. 

Reply
  • Because I can understand that "mesh_msg_handle" in access.c is receiving the message and printing it.
    But I am not understanding when to call this function. 

Children
  • You should be calling that function inside the mesh event callback(mesh_evt_cb), whenever you receive the NRF_MESH_EVT_MESSAGE_RECEIVED event. Take a look at the third thread I sent you.