LabVIEW-Open-Source / MQTT-Client

A LabVIEW-based client for MQTT
Other
27 stars 4 forks source link

Loosing Network Connection #12

Closed ssummers-lime closed 2 years ago

ssummers-lime commented 2 years ago

While trying to publish data with QoS 0 using TCP, if the network connection is lost then the main application is not notified of the lost connection. When the write vi is called, an error is generated from the TCP write and is passed into the setConnected.vi. Since this vi has an error case to capture incoming errors, the lose of connection is never set. A quick fix would be to remove the case structure. The vi also generates a user event "connection event" but I did not find this event being registered anywhere.

image

image

francois-normandin commented 2 years ago

@ssummers-lime Thanks for this report. You are correct and the error case structure should be removed to allow the code to execute even with an upstream error. I'll reference this bug in the MQTT-Connection repo for action.

francois-normandin commented 2 years ago

This is fixed and released in MQTT_Connection package 3.1.4. Will show up on vipm.io shortly.