Skip to content

Commit f875f79

Browse files
style: npm run format
1 parent 5ac8fee commit f875f79

File tree

17 files changed

+161
-161
lines changed

17 files changed

+161
-161
lines changed

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ In the interest of fostering an open and welcoming environment, we as community
1111

1212
Examples of behavior that contributes to creating a positive environment include:
1313

14-
- Using welcoming and inclusive language
15-
- Being respectful of differing viewpoints and experiences
16-
- Gracefully accepting constructive criticism
17-
- Focusing on what is best for the community
18-
- Showing empathy towards other community members
14+
- Using welcoming and inclusive language
15+
- Being respectful of differing viewpoints and experiences
16+
- Gracefully accepting constructive criticism
17+
- Focusing on what is best for the community
18+
- Showing empathy towards other community members
1919

2020
Examples of unacceptable behavior by participants include:
2121

22-
- The use of sexualized language or imagery and unwelcome sexual attention or advances
23-
- Trolling, insulting/derogatory comments, and personal or political attacks
24-
- Public or private harassment
25-
- Publishing others' private information, such as a physical or electronic address, without explicit permission
26-
- Other conduct which could reasonably be considered inappropriate in a professional setting
22+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
23+
- Trolling, insulting/derogatory comments, and personal or political attacks
24+
- Public or private harassment
25+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
26+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2727

2828
## Our Responsibilities
2929

NOTICE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This content is produced and maintained by the Eclipse Thingweb project.
44

5-
- Project home: https://projects.eclipse.org/projects/iot.thingweb
5+
- Project home: https://projects.eclipse.org/projects/iot.thingweb
66

77
## Trademarks
88

examples/quickstart/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
This set of Things can be used to build mashup applications for a smart home scenario.
44
These Things are:
55

6-
- Simple coffee machine that can take an order to brew a coffee.
7-
- Presence sensor that emits an event when a person is detected.
8-
- Smart clock that runs 60 times faster than real time, where 1 hour happens in 1 minute.
6+
- Simple coffee machine that can take an order to brew a coffee.
7+
- Presence sensor that emits an event when a person is detected.
8+
- Smart clock that runs 60 times faster than real time, where 1 hour happens in 1 minute.
99

1010
These Things are hosted on plugfest.thingweb.io but can be also self-hosted.

examples/templates/exposed-thing/README.md

Lines changed: 57 additions & 57 deletions
Large diffs are not rendered by default.

packages/binding-coap/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ In the following examples, how to use the CoAP binding of node-wot is shown.
1414

1515
### Prerequisites
1616

17-
- `npm install @node-wot/core`
18-
- `npm install @node-wot/binding-coap`
17+
- `npm install @node-wot/core`
18+
- `npm install @node-wot/binding-coap`
1919

2020
### Client Example
2121

packages/binding-file/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ In the following examples, how to use the File binding of node-wot is shown.
1010

1111
### Prerequisites
1212

13-
- `npm install @node-wot/core`
14-
- `npm install @node-wot/binding-file`
15-
- local test file `test.txt` with content
13+
- `npm install @node-wot/core`
14+
- `npm install @node-wot/binding-file`
15+
- local test file `test.txt` with content
1616

1717
### Example 1
1818

@@ -75,7 +75,7 @@ The example tries to load a locally stored TestThing TD and reads the `fileConte
7575

7676
### Prerequisites
7777

78-
- local TD file `TD.jsonld` with content as in Example 1
78+
- local TD file `TD.jsonld` with content as in Example 1
7979

8080
`node example2.js`
8181

packages/binding-http/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ In the following examples, how to use the HTTP binding of node-wot is shown.
1414

1515
### Prerequisites
1616

17-
- `npm install @node-wot/core`
18-
- `npm install @node-wot/binding-http`
17+
- `npm install @node-wot/core`
18+
- `npm install @node-wot/binding-http`
1919

2020
### Client Example
2121

@@ -373,11 +373,11 @@ servient.start().then(async (WoT) => {
373373

374374
**Symbols** :
375375

376-
- Y implemented
377-
- N not implement and not planned
378-
- N.A not applicable
379-
- ? need to be verified
380-
- P planned
376+
- Y implemented
377+
- N not implement and not planned
378+
- N.A not applicable
379+
- ? need to be verified
380+
- P planned
381381

382382
## More Details
383383

packages/binding-mbus/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ mbus+tcp:// <host> [ : <port> ] [/ <unitid> [ ?offset=<offset> [&timeout=<timeou
4343

4444
with the following meaning:
4545

46-
- `<host>` is the host name or IP address of the M-Bus slave
47-
- `<port>` is the optional TCP port number used to access the M-Bus slave. Default is 805
48-
- `<unitid>` is the M-Bus unit id of the M-Bus slave; same as [mbus:unitID](#mbus:unitID)
49-
- `<offset>` is the id of the data; see [mbus:offset](#mbus:offset)
50-
- `<timeout>` is the optional timeout in milliseconds of the request. Default is 1000; see [mbus:timeout](#mbus:timeout)
46+
- `<host>` is the host name or IP address of the M-Bus slave
47+
- `<port>` is the optional TCP port number used to access the M-Bus slave. Default is 805
48+
- `<unitid>` is the M-Bus unit id of the M-Bus slave; same as [mbus:unitID](#mbus:unitID)
49+
- `<offset>` is the id of the data; see [mbus:offset](#mbus:offset)
50+
- `<timeout>` is the optional timeout in milliseconds of the request. Default is 1000; see [mbus:timeout](#mbus:timeout)
5151

5252
When specified URL values override the corresponding `form` parameter.
5353

@@ -78,8 +78,8 @@ The protocol does not support security.
7878

7979
This implementation handles multiple requests to the same slave by combining them if possible. In the following, the terms **request** and **transaction** are used as follows to describe this:
8080

81-
- A **request** is a read request to a resource as issued by a user of the node-wot API.
82-
- A **transaction** is a M-Bus operation and may cover the data of multiple **requests**.
81+
- A **request** is a read request to a resource as issued by a user of the node-wot API.
82+
- A **transaction** is a M-Bus operation and may cover the data of multiple **requests**.
8383

8484
## Combination
8585

@@ -108,8 +108,8 @@ Reads the data with the id of 1 of the unit 2
108108

109109
## TODOs
110110

111-
- [ ] TEST
112-
- [ ] (M-Bus Server Protocol Binding)
111+
- [ ] TEST
112+
- [ ] (M-Bus Server Protocol Binding)
113113

114114
## More Details
115115

packages/binding-modbus/README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ modbus+tcp:// <host> [ : <port> ] [/ <unitid> [ / <address> ] [&quantity=<quanti
104104

105105
with the following meaning:
106106

107-
- `<host>` is the hostname or IP address of the MODBUS slave
108-
- `<port>` is the optional TCP port number used to access the MODBUS slave. Default is 502
109-
- `<unitid>` is the MODBUS unit id of the MODBUS slave; same as [modv:unitID](#modv:unitID)
110-
- `<address>` is the starting address register number; see [modv:address](#modv:address)
111-
- `<quantity>` is the optional number of registers to access. Default is 1; see [modv:quantity](#modv:quantity)
107+
- `<host>` is the hostname or IP address of the MODBUS slave
108+
- `<port>` is the optional TCP port number used to access the MODBUS slave. Default is 502
109+
- `<unitid>` is the MODBUS unit id of the MODBUS slave; same as [modv:unitID](#modv:unitID)
110+
- `<address>` is the starting address register number; see [modv:address](#modv:address)
111+
- `<quantity>` is the optional number of registers to access. Default is 1; see [modv:quantity](#modv:quantity)
112112

113113
When specified URL values override the corresponding `form` parameter.
114114

@@ -118,19 +118,19 @@ The MODBUS binding uses and provides plain binary data for reading and writing.
118118

119119
Along with content type `application/octet-stream`, this protocol binding accepts also an optional `byteSeq` parameter. `byteSeq` specifies the endian-ness of the raw byte data being read/written by the MODBUS binding. It follows the notation `application/octet-stream;byteSeq=value`, where its value can be one of the following:
120120

121-
- `BIG_ENDIAN`, which is the default value
122-
- `LITTLE_ENDIAN`
123-
- `BIG_ENDIAN_BYTE_SWAP`
124-
- `LITTLE_ENDIAN_BYTE_SWAP`
121+
- `BIG_ENDIAN`, which is the default value
122+
- `LITTLE_ENDIAN`
123+
- `BIG_ENDIAN_BYTE_SWAP`
124+
- `LITTLE_ENDIAN_BYTE_SWAP`
125125

126126
**Note**: the list above may be extended in the future.
127127

128128
In particular, the decimal numbers `9545` and `22880` will be encoded as follows:
129129

130-
- `BIG_ENDIAN`: `25 49 59 60`
131-
- `LITTLE_ENDIAN`: `60 59 49 25`
132-
- `BIG_ENDIAN_BYTE_SWAP`: `49 25 60 59`
133-
- `LITTLE_ENDIAN_BYTE_SWAP`: `59 60 25 49`
130+
- `BIG_ENDIAN`: `25 49 59 60`
131+
- `LITTLE_ENDIAN`: `60 59 49 25`
132+
- `BIG_ENDIAN_BYTE_SWAP`: `49 25 60 59`
133+
- `LITTLE_ENDIAN_BYTE_SWAP`: `59 60 25 49`
134134

135135
For register resources, the payload is just the plain sequence of bytes read from or written to the registers. For coils and discrete inputs, the payload is a sequence of bytes, each corresponding to a single coil or discrete input. Each byte contains the value `0` or `1`. So the encoder and decoder should work on this series of bytes and does not have to take care about handling the individual bits. Mapping each coil or discrete input to a single property of type `boolean` works just fine.
136136

@@ -145,8 +145,8 @@ The protocol does not support security.
145145

146146
This implementation handles multiple requests to the same slave by serializing and combining them if possible. In the following, the terms **request** and **transaction** are used as follows to describe this:
147147

148-
- A **request** is a read or write request to a resource as issued by a user of the node-wot API.
149-
- A **transaction** is a Modbus operation and may cover the data of multiple **requests**.
148+
- A **request** is a read or write request to a resource as issued by a user of the node-wot API.
149+
- A **transaction** is a Modbus operation and may cover the data of multiple **requests**.
150150

151151
### Combination
152152

@@ -221,14 +221,14 @@ Polls the 8th holding register of the unit 1 every second.
221221

222222
## TODOs
223223

224-
- [x] TEST
225-
- [ ] (Modbus Server Protocol Binding)
226-
- [x] Connection pooling
227-
- [ ] More sophisticated algorithm for combining requests. Some ideas
228-
- Not only append or prepend requests to transactions, but also combine transactions which become neighboured later on
229-
- Impose some limit to the overall number of registers. The MODBUS protocol has such a limit and devices may define even lower values
230-
- [ ] When a connection times out, re-connection does not work (see `connectionTimeout` in modbus-client.ts)
231-
- [x] When a Modbus device is not reachable, scripts using binding-modbus stop working - corresponding error handling is necessary
224+
- [x] TEST
225+
- [ ] (Modbus Server Protocol Binding)
226+
- [x] Connection pooling
227+
- [ ] More sophisticated algorithm for combining requests. Some ideas
228+
- Not only append or prepend requests to transactions, but also combine transactions which become neighboured later on
229+
- Impose some limit to the overall number of registers. The MODBUS protocol has such a limit and devices may define even lower values
230+
- [ ] When a connection times out, re-connection does not work (see `connectionTimeout` in modbus-client.ts)
231+
- [x] When a Modbus device is not reachable, scripts using binding-modbus stop working - corresponding error handling is necessary
232232

233233
## More Details
234234

packages/binding-mqtt/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ In the following examples it is shown how to use the MQTT binding of node-wot.
1616

1717
### Prerequisites
1818

19-
- `npm install @node-wot/core`
20-
- `npm install @node-wot/binding-mqtt`
19+
- `npm install @node-wot/core`
20+
- `npm install @node-wot/binding-mqtt`
2121

2222
### MQTT Thing Example I
2323

@@ -182,10 +182,10 @@ There are example implementations provided in the [example/scripting folder](htt
182182

183183
Please setup node-wot as described at the [node-wot main page](https://github.com/eclipse-thingweb/node-wot#as-a-standalone-application).
184184

185-
- example-mqtt-publish.js: Shows when node-wot acts as a MQTT Client that publishes data (latest counter value) to a broker.
186-
At the same time, another client can invoke an action, such as `resetCounter`, by sending a publication message to the topic of this action.
187-
This other client does not have to be node-wot, any MQTT client can interact with this Thing.
188-
For node-wot clients, make sure to provide MQTT broker details (`host`, `port`, `username`, `password`, `clientId`) in the wot-servient.conf.json:
185+
- example-mqtt-publish.js: Shows when node-wot acts as a MQTT Client that publishes data (latest counter value) to a broker.
186+
At the same time, another client can invoke an action, such as `resetCounter`, by sending a publication message to the topic of this action.
187+
This other client does not have to be node-wot, any MQTT client can interact with this Thing.
188+
For node-wot clients, make sure to provide MQTT broker details (`host`, `port`, `username`, `password`, `clientId`) in the wot-servient.conf.json:
189189

190190
```js
191191
{
@@ -202,7 +202,7 @@ Please setup node-wot as described at the [node-wot main page](https://github.co
202202

203203
Start the script by the command `wot-servient mqtt-publish.js` or `node ../../packages/cli/dist/cli.js mqtt-publish.js`.
204204

205-
- example-mqtt-subscription.js: Shows how node-wot consumes a Thing Description to do MQTT subscription on the provided event (=latest counter value) as well as initiate the action (reset counter).
205+
- example-mqtt-subscription.js: Shows how node-wot consumes a Thing Description to do MQTT subscription on the provided event (=latest counter value) as well as initiate the action (reset counter).
206206

207207
Start the script by the command `wot-servient -c mqtt-subscribe.js` or `node ../../packages/cli/dist/cli.js -c mqtt-subscribe.js`.
208208

0 commit comments

Comments
 (0)