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

LED status changes, it is automatically displayed in the application

Hello, i am a beginner, i am parsing a dimming example. i have two client and server boards, as well as an nRF Mesh application. I can change the brightness of LED by pressing the buttons on the client board, but at the same time in the application the LED status does not change until i click "read state". Is it possible to make is so that when the LED status changes, it is automatically displayed in the application without the need to click the "read state" button?

  • Hi,

    The short answer is no, because the nRF Mesh app is not implementing the generic level client the same way as the dimming client example running on the board.

    Full answer: Whenever the level changes on the server, the server sends out a status message to its "publish address". If for instance you configure the server to publish to 0xCC9B and you configure the client to subscribe to 0xCC9B, those status messages are sent from the server and received by the client. For the dimming examples you will then see reports of those messages on the RTT output from the client. Since the nRF Mesh app is not configured to subscribe to the publish address for the server, it will not receive any status updates, and so it has nothing to show. Unfortunately there does not seem to be any way to configure this, for the nRF Mesh app.

    It is possible to write a smart phone app that gets updated (provided it subscribes to the publish address of the server, that is.) I will file a suggestion to our app developers to add support for that for the nRF Mesh app, as it does sound like a useful feature.

    Regards,
    Terje

Related