Receive offline messages mqtt

后端 未结 2 985
感情败类
感情败类 2020-12-16 08:34

I\'m using mosquitto as broker and paho(python) as client. I\'m trying to make subscriber to receive offline messages.

For that I made following changes:

    <
2条回答
  •  一向
    一向 (楼主)
    2020-12-16 08:49

    Check if you have set the retain flag to true when publishing message to topic, with retain=true, new connected client which subscribes the topic will receive the retained message.

提交回复
热议问题