Hi,
I am using MQTT to retain the comments using text file after power cycle of R Pi. Initially when i enter comments it save perfectly fine. But after approximately 1 hours, it resets to the 2 days old message which is probably the same as i entered when i set this up.
That's my flow
[
{
"id": "1466334c.fd9ffd",
"type": "ui_text_input",
"z": "935db92.1ef9548",
"name": "",
"label": "Enter Comments Here",
"tooltip": "",
"group": "64754f4c.b5122",
"order": 7,
"width": 0,
"height": 0,
"passthru": true,
"mode": "text",
"delay": "5000",
"topic": "FP04",
"x": 1540,
"y": 360,
"wires": [
[
"262c1319.c5459c"
]
]
},
{
"id": "262c1319.c5459c",
"type": "mqtt out",
"z": "935db92.1ef9548",
"name": "",
"topic": "safety/inspection/forklift/comments/fp04",
"qos": "2",
"retain": "true",
"broker": "b90d0ecc.41907",
"x": 1820,
"y": 360,
"wires": []
},
{
"id": "d5f76e5d.feebc",
"type": "mqtt in",
"z": "935db92.1ef9548",
"name": "",
"topic": "safety/inspection/forklift/comments/fp04",
"qos": "2",
"datatype": "auto",
"broker": "b90d0ecc.41907",
"x": 1270,
"y": 360,
"wires": [
[
"1466334c.fd9ffd"
]
]
},
{
"id": "64754f4c.b5122",
"type": "ui_group",
"z": "",
"name": "FP-04",
"tab": "520d4e1.6420bb",
"order": 3,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "b90d0ecc.41907",
"type": "mqtt-broker",
"name": "",
"broker": "test.mosquitto.org",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": false,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willPayload": ""
},
{
"id": "520d4e1.6420bb",
"type": "ui_tab",
"z": "",
"name": "FORKLIFTS",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]