Python MQTT for Smart-Home Telemetry: QoS Under a Dropped Link, Last Will and Persistent Sessions (paho-mqtt 2.x)

I ran the same Python MQTT publisher five times through a link that first loses its acknowledgements and then drops completely. 300 temperature readings each run. QoS 0 lost 92 of them, which is what QoS 0 promises. QoS 1 lost nothing and delivered 20 twice, also as promised. QoS 2, the “exactly once” level, lost 51. The protocol was not at fault. The client re-sent its whole backlog at once after reconnecting, the broker allows only 20 unfinished QoS 1/2 messages per client, and the extra ones…
Publicado no Notice. Categoria: Programação.
Leia também
Notícias sobre o mesmo assunto em outras fontes
ProgramaçãoDev.toMonitor all your Claude Code sessions in one window
