You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `writeProperty` command writes a single property of an object to a device.
50
+
Implementing and maintaining a protocol stack is a lot of work, therefore any
51
+
help is appreciated, from creating issues, to contributing documentation, fixing
52
+
issues and adding new features.
86
53
87
-
-`address`*[string]* - IP address of the target device.
88
-
-`objectType`*[number]* - The BACNET object type to write.
89
-
-`objectInstance`*[number]* - IP address of the target device.
90
-
-`propertyId`*[number]* - The BACNET property id in the specified object to write.
91
-
-`priority`*[number]* - The priority to be used for writing to the property.
92
-
-`valueList`*[array]* - A list of values to be written to the speicifed property. The `Tag` value has to be a `BacnetApplicationTags` declaration as specified in `lib/bacnet-enum.js`.
93
-
-`next`*[function]* - The callback containing an error, in case of a failure and value object in case of success.
54
+
Please follow the best-practice contribution guidelines as mentioned below when
55
+
submitting any changes.
94
56
95
-
propertyId, ,
57
+
### Code Style
96
58
97
-
```js
98
-
var bacnet =require('bacstack');
99
-
var client =bacnet();
59
+
This module uses the [Google JavaScript Code-Style](https://google.github.io/styleguide/javascriptguide.xml)
60
+
and enforces it using [JSCS](http://jscs.info/) as additional linter beneath
61
+
[JSHint](http://jshint.com/). You can test if your changes comply with the code
* The writeProperty command writes a single property of an object to a device.
92
+
* @function bacstack.writeProperty
93
+
* @param {string} address - IP address of the target device.
94
+
* @param {number} objectType - The BACNET object type to write.
95
+
* @param {number} objectInstance - The BACNET object instance to write.
96
+
* @param {number} propertyId - The BACNET property id in the specified object to write.
97
+
* @param {number} priority - The priority to be used for writing to the property.
98
+
* @param {object[]} valueList - A list of values to be written to the speicifed property.
99
+
* @param {number} valueList.Tag - The data-type of the value to be written. Has to be a BacnetApplicationTags declaration as specified in lib/bacnet-enum.js.
100
+
* @param {number} valueList.Value - The actual value to be written.
101
+
* @param {function} next - The callback containing an error, in case of a failure and value object in case of success.
* The readPropertyMultiple command reads multiple properties in multiple objects from a device.
113
+
* @function bacstack.readPropertyMultiple
114
+
* @param {string} address - IP address of the target device.
115
+
* @param {object[]} propertyIdAndArrayIndex - List of object and property specifications to be read.
116
+
* @param {object} propertyIdAndArrayIndex.objectIdentifier - Specifies which object to read.
117
+
* @param {number} propertyIdAndArrayIndex.objectIdentifier.type - The BACNET object type to read.
118
+
* @param {number} propertyIdAndArrayIndex.objectIdentifier.instance - The BACNET object instance to read.
119
+
* @param {object[]} propertyIdAndArrayIndex.propertyReferences - List of properties to be read.
120
+
* @param {number} propertyIdAndArrayIndex.propertyReferences.propertyIdentifier - The BACNET property id in the specified object to read. Also supports 8 for all properties.
121
+
* @param {function} next - The callback containing an error, in case of a failure and value object in case of success.
0 commit comments