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

Integrate serial and light_switch client example

Hi,

We want to subscribe the provisioner in the serial example to any state changes of light_switch server. The light_switch server will publish this to a specific group. How do we subscribe the provisioner to that group? Is this possible, if not do we need to integrate the light_switch client into the provisioner? If so, how do we proceed with this?

Regards,

Suhas K V

Parents Reply Children
  • The challenge is that the light switches does not publish their new state, unless it is in a reply to the light switch that sent the original message.

    What you can do is to make the light switch client also subscribe to the same channel, and it will get the same notification as the light switch servers get when another (?) light switch turns on or off the light.

    BR,

    Edvin

Related