---
title: "Discussion on \"Why an MQTT value can go from 22 back to 21 after reconnecting\" | Hashnode"
description: "Discussion on \"Why an MQTT value can go from 22 back to 21 after reconnecting\". A subscriber receives 22. Reconnect it, and 21 appears again. Before changing a sensor or a dashboard, check which value the broker retained.\nIn a local test with Mosquitto and AirMQTT in an iPhone si"
url: "https://hashnode.com/posts/why-an-mqtt-value-can-go-from-22-back-to-21-after-reconnecting/6acfdf167c1898831bad25e4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why an MQTT value can go from 22 back to 21 after reconnecting](https://stargap.hashnode.dev/why-an-mqtt-value-can-go-from-22-back-to-21-after-reconnecting?utm_source=hashnode&utm_medium=feed)

A subscriber receives 22. Reconnect it, and 21 appears again. Before changing a sensor or a dashboard, check which value the broker retained. In a local test with Mosquitto and AirMQTT in an iPhone si

Oct 14 · 2 min read · stargap.hashnode.dev  
Updated Oct 16  
Read the article

-   [#mqtt](https://hashnode.com/tag/mqtt)

## Written by

[Stargap](https://hashnode.com/@stargap)

@stargap

  
[View profile](https://hashnode.com/@stargap)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
