I am using the logic in the image to send data over MQTT and, in the past, it has worked correctly: the status node is supposed to detect the connection status of the mqtt out node and, if disconnected, store the data locally waiting for the connection to be restored
As I say, I saw it working in the past, but today in a routinary check, I disabled Wi-Fi and MQTT out nodes never showed status "disconnected" What should I check? Any clue?
I can't find anything specifically called Last Will and Testament. Maybe you are talking about what I can find in MQTT-broker node config?: Message sent on an unexpected disconnection? It's left blank and I'm sure I've never touched it.
Server: xxxxx Port 1883
Connect automatically
Protocol MQTT V3.1.1
Client ID: blank
Keep alive: 60
Use Clean Session
Birth, close and will messages Topic, Payload and Retain: Blank
Birth, close and will messages QoS: 0
Yes, it is the IP of a remote server.
Aedes is not related with the problem (in my opinion). It was used to test some alternatives in the past
Node-red is running on a Raspberry
That's right. The raspberry is local. I can connect to it by VNC or by a browser on my PC (via WIFI).
In addition, to do these tests, I physically connect to it, to deactivate wifi and see if StoreNForward status indicator increase (meaning, it is sending data to local file). As Isaid, it was its behaviour in the past, but now, MQTT out nodes are never "disconnected" from the broker
Do you mean that you don't know whether the nodes actually show disconnected or not, what you know is that things that are supposed to happen in that situation are not happening?
If so then disconnect the wifi, leave it for a while, reconnect, and then look back at the node-red log to see what it says. You should be able to see mqtt disconnection messages.
Also you can configure debug nodes to monitor your flow and set them to output to the Console, then those will be visible in the node-red log too so you can debug the flow retrospectively.