node-red-contrib-modbus-modpackqt 3.2.1 → 3.2.3

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/CHANGELOG.md CHANGED
@@ -4,6 +4,24 @@ All notable changes to **node-red-contrib-modbus-modpackqt** are documented
4
4
  here. This project follows [Semantic Versioning](https://semver.org/) — pin a
5
5
  major version (`^2.0.0`) in production.
6
6
 
7
+ ## [3.2.3] — 2026-05-10
8
+
9
+ ### Changed
10
+
11
+ - **Embedded slave server section is now hidden by default** in the
12
+ runtime config dialog. Only relevant to users of the
13
+ `modpackqt-slave-read` / `-write` nodes — master-only users no longer
14
+ see the "Enable embedded Modbus TCP slave server" checkbox at all.
15
+ Auto-expanded if the slave server is already enabled on the config.
16
+
17
+ ## [3.2.2] — 2026-05-10
18
+
19
+ ### Changed
20
+
21
+ - `modpackqt-master-read` default **Poll Interval** is now **1000 ms**
22
+ (was 0 / disabled). Existing flows keep their saved value — only newly
23
+ dropped nodes get the new default.
24
+
7
25
  ## [3.2.1] — 2026-05-10
8
26
 
9
27
  ### Changed — Picker-first node UI
@@ -18,7 +18,7 @@
18
18
  const http = require('http');
19
19
  const { URL } = require('url');
20
20
 
21
- const PALETTE_VERSION = '3.2.1';
21
+ const PALETTE_VERSION = '3.2.3';
22
22
  const DEFAULT_PORT = parseInt(process.env.MODPACKQT_PROBE_PORT, 10) || 8502;
23
23
  const BIND_HOST = process.env.MODPACKQT_PROBE_HOST || '127.0.0.1';
24
24
  const PORT_RETRY = 5;
@@ -35,6 +35,22 @@
35
35
  $('#node-config-input-slaveEnabled').on('change', toggleSlave);
36
36
  toggleRtu();
37
37
  toggleSlave();
38
+ // Embedded slave server section is hidden by default — only relevant
39
+ // for users of the modpackqt-slave-read / -write nodes. Auto-expand
40
+ // if the slave server is already enabled on this config.
41
+ const $slaveSection = $('.modpackqt-slave-section');
42
+ const $slaveToggle = $('.modpackqt-slave-section-toggle');
43
+ const setSlaveOpen = (open) => {
44
+ $slaveSection.toggle(open);
45
+ $slaveToggle.html(open
46
+ ? '▾ Hide embedded slave server'
47
+ : '▸ Embedded slave server (only for modpackqt-slave-read / -write nodes)');
48
+ };
49
+ setSlaveOpen(this.slaveEnabled === true || this.slaveEnabled === 'true');
50
+ $slaveToggle.off('click.modpackqt').on('click.modpackqt', (e) => {
51
+ e.preventDefault();
52
+ setSlaveOpen($slaveSection.is(':hidden'));
53
+ });
38
54
  }
39
55
  });
40
56
  </script>
@@ -86,20 +102,24 @@
86
102
  <input type="number" id="node-config-input-timeoutMs" placeholder="3000">
87
103
  </div>
88
104
 
89
- <h4 style="margin-top:18px">Slave Server (inbound let other masters read from you)</h4>
90
- <div class="form-row">
91
- <label for="node-config-input-slaveEnabled" style="width:auto">
92
- <input type="checkbox" id="node-config-input-slaveEnabled" style="width:auto;vertical-align:middle">
93
- Enable embedded Modbus TCP slave server
94
- </label>
95
- </div>
96
- <div class="form-row modpackqt-slave-only">
97
- <label for="node-config-input-slaveHost"><i class="fa fa-globe"></i> Bind Host</label>
98
- <input type="text" id="node-config-input-slaveHost" placeholder="0.0.0.0 (all interfaces)">
105
+ <div class="form-row" style="margin:14px 0 4px 0;border-top:1px solid #e5e7eb;padding-top:10px">
106
+ <a href="#" class="modpackqt-slave-section-toggle" style="font-size:12px;color:#6b7280;text-decoration:none;cursor:pointer">▸ Embedded slave server (only for modpackqt-slave-read / -write nodes)</a>
99
107
  </div>
100
- <div class="form-row modpackqt-slave-only">
101
- <label for="node-config-input-slavePort"><i class="fa fa-hashtag"></i> Slave Port</label>
102
- <input type="number" id="node-config-input-slavePort" placeholder="1502">
108
+ <div class="modpackqt-slave-section" style="display:none">
109
+ <div class="form-row">
110
+ <label for="node-config-input-slaveEnabled" style="width:auto">
111
+ <input type="checkbox" id="node-config-input-slaveEnabled" style="width:auto;vertical-align:middle">
112
+ Enable embedded Modbus TCP slave server
113
+ </label>
114
+ </div>
115
+ <div class="form-row modpackqt-slave-only">
116
+ <label for="node-config-input-slaveHost"><i class="fa fa-globe"></i> Bind Host</label>
117
+ <input type="text" id="node-config-input-slaveHost" placeholder="0.0.0.0 (all interfaces)">
118
+ </div>
119
+ <div class="form-row modpackqt-slave-only">
120
+ <label for="node-config-input-slavePort"><i class="fa fa-hashtag"></i> Slave Port</label>
121
+ <input type="number" id="node-config-input-slavePort" placeholder="1502">
122
+ </div>
103
123
  </div>
104
124
 
105
125
  <h4 style="margin-top:18px">ModPackQT Account Key (optional — for cloud profile sync)</h4>
@@ -11,7 +11,7 @@
11
11
  functionCode: { value: '3', required: true },
12
12
  address: { value: 0, required: true, validate: RED.validators.number() },
13
13
  quantity: { value: 1, required: true, validate: RED.validators.number() },
14
- pollInterval: { value: 0, validate: RED.validators.number() }
14
+ pollInterval: { value: 1000, validate: RED.validators.number() }
15
15
  },
16
16
  inputs: 1,
17
17
  outputs: 1,
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
  <div class="form-row">
127
127
  <label for="node-input-pollInterval"><i class="fa fa-clock-o"></i> Poll Interval (ms)</label>
128
- <input type="number" id="node-input-pollInterval" min="0" placeholder="0 = disabled">
128
+ <input type="number" id="node-input-pollInterval" min="0" placeholder="1000 (0 = disabled, input-only)">
129
129
  </div>
130
130
 
131
131
  <div class="form-row" style="margin:14px 0 4px 0;border-top:1px solid #e5e7eb;padding-top:10px">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-modbus-modpackqt",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "Modbus commissioning, testing & analysis tools for Node-RED. Embedded Modbus TCP/RTU master + slave server, FC1/FC2/FC3/FC4 reads, FC5/FC6/FC15/FC16 writes, built-in slave register store, and a passive traffic monitor for debugging. 100% free, MIT, no usage limits. By ModPackQT — open the matching web console at modpackqt.com for register decoding, simulation and AI assistance.",
5
5
  "keywords": [
6
6
  "node-red",