I'm developing a sensor node using light_switch_serve as an endpoint to receive commands and send sensor's data to light_switch_client.
The examples works perfect, but I would like to send data from server to client. I try to use publish_state on server without success.
There are any example or how can I send data from server to client?