Combine sensor example with light_lightness example

Hi, I am using nrf52840 and Mesh V4.2.0 sensor and light_lightness examples.

I have been able to successfully combine the server side, but I have no idea how to start combining the client part. Is there anyone who has an idea?

Thank you.

Parents
  • Hi.

    Could you maybe add some more informationa about what you want to do?

    no idea how to start combining the client part.

    What is it that you want to combine here?

    ______________

    The sensor example is composed of the following minor examples:

    • Sensor server: A minimalistic server that implements a Sensor server model, with the sensor value emulated and controllable by buttons on the board.
    • Sensor client: A minimalistic client that implements two instances of a Sensor client model. Buttons on the board can be used to send messages to the Sensor servers in order to control their cadence and request status messages.

    So there should already both a client and a server example available for you.

    Br,
    Joakim

  • Hi, sorry for the late reply. Yes, I have seen the sensor example so now I'm trying to add the example into the light lightness example.

    Could you maybe add some more informationa about what you want to do?

    So on the server side, when I press button 2, the motion and brightness increase. Similarly, when I press button 1, the motion and brightness decrease. Also whenever I press button 1 or 2, the server will publish the motion and brightness changes to the client, hence I want to combine both the examples together.

    At the client side, whenever I want to set the lightness of the server, it will also send the motion status back to the client along with the lightness.

    So how do I go about doing this? Thank you for your help.

Reply
  • Hi, sorry for the late reply. Yes, I have seen the sensor example so now I'm trying to add the example into the light lightness example.

    Could you maybe add some more informationa about what you want to do?

    So on the server side, when I press button 2, the motion and brightness increase. Similarly, when I press button 1, the motion and brightness decrease. Also whenever I press button 1 or 2, the server will publish the motion and brightness changes to the client, hence I want to combine both the examples together.

    At the client side, whenever I want to set the lightness of the server, it will also send the motion status back to the client along with the lightness.

    So how do I go about doing this? Thank you for your help.

Children
No Data
Related