smithtek-mako-rf 2.9.0 → 2.9.1

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.0",
3
+ "version": "2.9.1",
4
4
  "description": "Smithtek dedicated node for communicating with the Mako PLC over RS485 or RF",
5
5
  "keywords": [
6
6
  "node-red",
@@ -249,7 +249,14 @@
249
249
  $("#st-row-parity").toggle(!isRF);
250
250
  $("#st-row-stopBits").toggle(!isRF);
251
251
 
252
- // Optional: force defaults for RF (still stored, just not user-adjustable)
252
+ // show RSSI options ONLY for RF
253
+ $("#st-rssi-wrap").toggle(isRF);
254
+
255
+ // Optional: if not RF, force RSSI off so it can't be accidentally enabled
256
+ if (!isRF) {
257
+ $("#node-config-input-appendRssi").prop("checked", false);
258
+ }
259
+
253
260
  if (isRF) {
254
261
  $("#node-config-input-baudRate").val(9600);
255
262
  $("#node-config-input-parity").val("none");
@@ -401,29 +408,33 @@
401
408
 
402
409
  <hr />
403
410
 
404
- <div class="form-row">
405
- <label for="node-config-input-appendRssi"><i class="fa fa-signal"></i> RSSI</label>
406
- <input type="checkbox" id="node-config-input-appendRssi" style="width:auto;">
407
- <span style="margin-left:8px; font-size:12px; color:#888;">
408
- (Tick on RSSI diagnostic in dBi, using this feeature slows down RF polling by 30%.)
409
- </span>
410
- </div>
411
-
412
- <div class="form-row">
413
- <label for="node-config-input-rssiGuardMs"><i class="fa fa-clock-o"></i> RSSI guard (ms)</label>
414
- <input type="number" id="node-config-input-rssiGuardMs" min="0" style="width:140px;">
415
- <span style="margin-left:8px; font-size:12px; color:#888;">
416
- (The RSSI guard is the time between the Modbus poll and the RSSI read from the LoRa module 5 to 10ms is ideal)
417
- </span>
418
- </div>
419
-
420
- <div class="form-row">
421
- <label for="node-config-input-rssiTimeoutMs"><i class="fa fa-hourglass-end"></i> RSSI timeout (ms)</label>
422
- <input type="number" id="node-config-input-rssiTimeoutMs" min="10" style="width:140px;">
423
- <span style="margin-left:8px; font-size:12px; color:#888;">
424
- (The RSSI timeout is how long the module will be givien to respond with the RSSI)
425
- </span>
426
- </div>
411
+ <div id="st-rssi-wrap">
412
+
413
+ <div class="form-row">
414
+ <label for="node-config-input-appendRssi"><i class="fa fa-signal"></i> RSSI</label>
415
+ <input type="checkbox" id="node-config-input-appendRssi" style="width:auto;">
416
+ <span style="margin-left:8px; font-size:12px; color:#888;">
417
+ (Tick on RSSI diagnostic in dBi, using this feeature slows down RF polling by 30%.)
418
+ </span>
419
+ </div>
420
+
421
+ <div class="form-row">
422
+ <label for="node-config-input-rssiGuardMs"><i class="fa fa-clock-o"></i> RSSI guard (ms)</label>
423
+ <input type="number" id="node-config-input-rssiGuardMs" min="0" style="width:140px;">
424
+ <span style="margin-left:8px; font-size:12px; color:#888;">
425
+ (The RSSI guard is the time between the Modbus poll and the RSSI read from the LoRa module 5 to 10ms is ideal)
426
+ </span>
427
+ </div>
428
+
429
+ <div class="form-row">
430
+ <label for="node-config-input-rssiTimeoutMs"><i class="fa fa-hourglass-end"></i> RSSI timeout (ms)</label>
431
+ <input type="number" id="node-config-input-rssiTimeoutMs" min="10" style="width:140px;">
432
+ <span style="margin-left:8px; font-size:12px; color:#888;">
433
+ (The RSSI timeout is how long the module will be givien to respond with the RSSI)
434
+ </span>
435
+ </div>
436
+
437
+ </div>
427
438
 
428
439
 
429
440
  <div class="form-row">