smithtek-mako-rf 2.9.6 → 2.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smithtek-mako-rf",
3
- "version": "2.9.6",
3
+ "version": "2.9.7",
4
4
  "description": "Smithtek dedicated node for communicating with the Mako PLC over RS485 or RF",
5
5
  "keywords": [
6
6
  "node-red",
Binary file
@@ -598,6 +598,9 @@ module.exports = function (RED) {
598
598
 
599
599
 
600
600
  const rssiDbm = await queryRssiOnSamePort(state, guardMs, timeoutMs);
601
+ state.connected = false;
602
+ try { state.client.close(() => {}); } catch (_e) {}
603
+
601
604
 
602
605
  const nodeKeyBase = sanitizeKey(node.name || busName || "mako_rf");
603
606
  const key = `${nodeKeyBase}_rssi_dbm`;