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

Nrf mesh reply to client

Mesh SDK:3.2.0

I want to send dimming level to server, and want return data of dimming level with mcu voltage.

When I receive server set callback, I tried:  status publish function which took data from server_get_callback function as usual.

but this message is send to server publish address, not to the client which sends level.

How to reply with some data to client from data is received.

Thank You

Bivay

Parents
  • Hi,

    You should either set the client node to subscribe to the server publish address, or use a separate model for polling MCU voltage values.

    From what I understand you can also use a custom model for the aggregate of dimming and voltage level, although that may quickly become non-idiomatic. In general, when the client sets a value on the server, the ack should be for that value and not for something different.

    I recommend having a look at the Mesh Model Specification chapter "2.3.6 Models", which describes "server", "client" and "control" models, then figure out how those concepts maps to your use case. It sounds like a control model may be what you are looking for.

    Regards,
    Terje

Reply
  • Hi,

    You should either set the client node to subscribe to the server publish address, or use a separate model for polling MCU voltage values.

    From what I understand you can also use a custom model for the aggregate of dimming and voltage level, although that may quickly become non-idiomatic. In general, when the client sets a value on the server, the ack should be for that value and not for something different.

    I recommend having a look at the Mesh Model Specification chapter "2.3.6 Models", which describes "server", "client" and "control" models, then figure out how those concepts maps to your use case. It sounds like a control model may be what you are looking for.

    Regards,
    Terje

Children
No Data
Related