knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.78k stars 1.46k forks source link

Execute old command on subscribe topic #979

Closed whoim2 closed 1 year ago

whoim2 commented 1 year ago

Hello. At .subscribe executing callback functions with last payload. What i may disable this? Callback exec only at new writes on topic.

ESP executing last command on start / reconnect, its not needed.

whoim2 commented 1 year ago

im change algoritm. Control software write 1 in topic, esp execute command if payload 1 and write 0 back to this topic.