@ncd-io/node-red-enterprise-sensors 0.1.23 → 1.0.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/lib/DigiParser.js +3 -2
- package/lib/WirelessGateway.js +2890 -153
- package/package.json +1 -1
- package/wireless.html +129 -22
- package/wireless.js +646 -6
package/lib/DigiParser.js
CHANGED
|
@@ -122,6 +122,7 @@ module.exports = class DigiComm{
|
|
|
122
122
|
that.serial.write(packet, (err) => {
|
|
123
123
|
that.lastSent = packet;
|
|
124
124
|
if(err){
|
|
125
|
+
console.log('_send frame error');
|
|
125
126
|
console.log(err);
|
|
126
127
|
}
|
|
127
128
|
});
|
|
@@ -172,8 +173,8 @@ class outgoingFrame{
|
|
|
172
173
|
var config = this.transmissionOptions(opts);
|
|
173
174
|
var frame = [17, this.master.getId()];
|
|
174
175
|
frame.push(...mac);
|
|
175
|
-
var
|
|
176
|
-
frame.push(...
|
|
176
|
+
var payload = [255, 254, source, destination, cluster[0], cluster[1], profile[0], profile[1], (config >> 8), (config & 255)];
|
|
177
|
+
frame.push(...payload);
|
|
177
178
|
if(data.constructor != Array) data = [data];
|
|
178
179
|
frame.push(...data);
|
|
179
180
|
return this.master._send(frame);
|