If the esp is connect to the mqtt server and we publish a message on "inChannel" (where we are subscribe us to receive messages), the callback function read the message and we can process it. But, when in server there is a willmessage and the ESP connect to "inChannel", the last willmessage is publish on channel but the ESP don't read this "willmessage".
Anybody know how we can do for the ESP can read the last willmessage that exist on the channel????
If the esp is connect to the mqtt server and we publish a message on "inChannel" (where we are subscribe us to receive messages), the callback function read the message and we can process it. But, when in server there is a willmessage and the ESP connect to "inChannel", the last willmessage is publish on channel but the ESP don't read this "willmessage". Anybody know how we can do for the ESP can read the last willmessage that exist on the channel????
Thanks a lot and Regards