[BUG] Looking for MQTTX to log messages for longer duration
Discussed in https://github.com/emqx/MQTTX/discussions/1074
Originally posted by unnabrt September 16, 2022 I have been using MQTTX application for last 4 months. It is very useful tool to connect to my MQTT broker and works as a logger. But the MQTT connection in the tool doesn't last for more than 2 hours. It started successfully with the following messages
[2022-09-16 15:52:34] [INFO] MQTTX client with ID 58c90fdb-eaa7-4f5a-b3e0-d45361e80f11 assigned [2022-09-16 15:52:34] [INFO] Connect client xxx_demo, MQTT/SSL connection: mqtts://mqtt.myportal.com:8883 [2022-09-16 15:52:34] [INFO] xxx_demo connect success, MQTT.js onConnect trigger
after running for nearly 1.5hrs, it ended with the following error message:
[2022-09-16 17:33:29] [INFO] xxx_demo message arrived: message added "message_63d3c492-b016-4ad1-a60c-04c6a6c2f895" added to topic "server/L00006/pub_sensor_reading", payload: "{"UID":"L00045","OBJ":"32769","TS":"1663320805","SNS":["28.88","-4.88","33.50"]}" MQTT.js onMessageArrived trigger [2022-09-16 17:33:30] [ERROR] xxx_demo connect fail, MQTT.js onError trigger, Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20) [2022-09-16 17:33:30] [INFO] xxx_demo connect close, MQTT.js onClose trigger
Kindly help if there is any setting to prolong the duration of usage.
Btw, the OS and the versions: MQTTX Version: v1.8.2 on Windows 10 Pro, v 21H2
thanks
@unnabrt Thank you for the information.