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

Light switch : On/Off "notification" on the ios app

Hello,

I am working with the mesh SDK 2.1.1 version and the Light switch proxy server and proxy client examples.

Everything is working fine between client and server and group works.  

With my custom ios application I can change the state of the model Generic_on_off on the server. I can make a request "GET" to get the state on/off of the server.

targetProvisionedNode.nodeGenericOnOffGet(elementAddress, onDestinationAddress : unicast)

Set request, Get request works.


I need that the server notifies the smartphone application when the state changes (for example by pressing the physical button of the development kit)

What is the best architecture for real-time information in the app ? 

thank you very much.

  • Hi.

    What is the best architecture for real-time information in the app

    I assume you are talking about the iOS application here?

    I've talked to our mobile developers about this and it shouldn't be any major trouble doing this.

    Whenever the state changes, for example on button press, the node will send a message to a given address that the phone would receive. There should be a callback from a manager for the messages received available in the nRF Mesh library.

    Best regards,
    Joakim.

Related