@bitpoolos/edge-bacnet 1.6.6 → 1.6.8

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.
@@ -25,7 +25,7 @@ const decodeTarget = (buffer, offset) => {
25
25
  const encodeTarget = (buffer, target) => {
26
26
  buffer.buffer[buffer.offset++] = (target.net & 0xFF00) >> 8;
27
27
  buffer.buffer[buffer.offset++] = (target.net & 0x00FF) >> 0;
28
- if (target.net === 0xFFFF || !target.adr) {
28
+ if (target.net === 0xFFFF || !target.adr || target.adr.length === 0) {
29
29
  buffer.buffer[buffer.offset++] = 0;
30
30
  }
31
31
  else {
@@ -319,8 +319,13 @@
319
319
  margin-left: 10px;
320
320
  background-color: #00aeef;
321
321
  color: #ffffff;
322
- border-radius: 45%;
323
- font-size: 12px;
322
+ border-radius: 4px;
323
+ font-size: 11px;
324
+ font-weight: 500;
325
+ padding: 2px 6px;
326
+ display: inline-block;
327
+ vertical-align: middle;
328
+ line-height: 1.2;
324
329
  }
325
330
 
326
331
  .pointAddedToRead {
package/treeBuilder.js CHANGED
@@ -355,6 +355,12 @@ class treeBuilder {
355
355
  this.addPointProperty(pointProperties, "Modification Date", point.modificationDate);
356
356
  this.addPointProperty(pointProperties, "Program State", point.programState);
357
357
  this.addPointProperty(pointProperties, "Record Count", point.recordCount);
358
+
359
+ // Add device-specific properties (type 8)
360
+ this.addPointProperty(pointProperties, "Vendor Name", point.vendorName);
361
+ this.addPointProperty(pointProperties, "Model Name", point.modelName);
362
+ this.addPointProperty(pointProperties, "Firmware Revision", point.firmwareRevision);
363
+ this.addPointProperty(pointProperties, "Application Software Version", point.applicationSoftwareVersion);
358
364
 
359
365
  // Return the array of point properties
360
366
  return pointProperties;