forked from fh1ch/node-bacstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.js
More file actions
28 lines (25 loc) · 667 Bytes
/
Copy pathutils.js
File metadata and controls
28 lines (25 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var bacnet = require('../../');
module.exports.bacnetClient = bacnet;
module.exports.globalBacnetClient = bacnet();
module.exports.transportStub = function() {
var self = this;
self.handler = function() {};
self.setHandler = function(handler) {
self.handler = handler;
};
self.getBroadcastAddress = function() {
return '255.255.255.255';
};
self.getMaxPayload = function() {
return 1482;
};
self.send = function() {};
return self;
};
module.exports.propertyFormater = function(object) {
var converted = {};
object.forEach((property) => {
converted[property.propertyIdentifier] = property.value;
});
return converted;
};