Skip to content

Commit

Permalink
Renamed controller.controller field to controller.id (future proofing)
Browse files Browse the repository at this point in the history
  • Loading branch information
twystd committed Jun 12, 2024
1 parent 5fc615a commit 05699af
Show file tree
Hide file tree
Showing 79 changed files with 1,346 additions and 1,354 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ All nodes (other than `get-devices`) expect a controller in the input message pa
```
{
"controller": {
"controller": 405419896,
"id": 405419896,
"address": "192.168.1.100",
"protocol": "tcp"
}
}
- controller: controller serial number
- id: controller serial number
- address: controller IPv4 address (optional)
- protocol: 'udp' or 'tcp' (optional)
Expand Down
8 changes: 4 additions & 4 deletions examples/basic/10-tasklist.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"task\":{\"task\":5,\"door\":3,\"valid\":{\"from\":\"2021-01-01\",\"to\":\"2021-12-31\"},\"weekdays\":[\"Monday\",\"Wednesday\",\"Friday\"],\"start\":\"08:30\",\"cards\":7}}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"task\":{\"task\":5,\"door\":3,\"valid\":{\"from\":\"2021-01-01\",\"to\":\"2021-12-31\"},\"weekdays\":[\"Monday\",\"Wednesday\",\"Friday\"],\"start\":\"08:30\",\"cards\":7}}",
"payloadType": "json",
"x": 130,
"y": 260,
Expand Down Expand Up @@ -260,7 +260,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"task\":{\"task\":\"enable time profile\",\"door\":3,\"valid\":{\"from\":\"2021-01-01\",\"to\":\"2021-12-31\"},\"weekdays\":[\"Monday\",\"Wednesday\",\"Friday\"],\"start\":\"08:30\",\"cards\":7}}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"task\":{\"task\":\"enable time profile\",\"door\":3,\"valid\":{\"from\":\"2021-01-01\",\"to\":\"2021-12-31\"},\"weekdays\":[\"Monday\",\"Wednesday\",\"Friday\"],\"start\":\"08:30\",\"cards\":7}}",
"payloadType": "json",
"x": 130,
"y": 380,
Expand Down Expand Up @@ -413,7 +413,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payloadType": "json",
"x": 130,
"y": 140,
Expand Down Expand Up @@ -471,7 +471,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payloadType": "json",
"x": 130,
"y": 500,
Expand Down
12 changes: 4 additions & 8 deletions examples/basic/11-events.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"enable\":true}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"enable\":true}",
"payloadType": "json",
"x": 130,
"y": 140,
Expand Down Expand Up @@ -455,8 +455,6 @@
"06c6c0cbc28d7a2b",
"5cc40db6d9f925d3",
"5f4fe1a469cb67c5",
"93720d51e19ed5ef",
"ac4d232bf71b7dd9",
"add09a1b97f51d1e"
],
"x": 655,
Expand Down Expand Up @@ -502,7 +500,6 @@
"name": "get-event-index",
"mode": "link",
"links": [
"1d3b15ec44a91b94",
"b990cf094cd11447"
],
"x": 495,
Expand All @@ -528,7 +525,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payloadType": "json",
"x": 130,
"y": 260,
Expand Down Expand Up @@ -560,7 +557,6 @@
"name": "get-event-index",
"mode": "link",
"links": [
"1d3b15ec44a91b94",
"b990cf094cd11447"
],
"x": 495,
Expand Down Expand Up @@ -600,7 +596,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"index\":14}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"index\":14}",
"payloadType": "json",
"x": 130,
"y": 380,
Expand Down Expand Up @@ -710,7 +706,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"index\":17}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"index\":17}",
"payloadType": "json",
"x": 130,
"y": 500,
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/12-set-pc-control.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"enable\":true}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"enable\":true}",
"payloadType": "json",
"x": 130,
"y": 140,
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/13-restore-default-parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payloadType": "json",
"x": 130,
"y": 140,
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/2-get-device.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payloadType": "json",
"x": 130,
"y": 140,
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/3-set-ip.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "set-address",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"address\":\"192.168.1.125\",\"netmask\":\"255.255.255.0\",\"gateway\":\"192.168.1.1\"}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"address\":\"192.168.1.125\",\"netmask\":\"255.255.255.0\",\"gateway\":\"192.168.1.1\"}",
"payloadType": "json",
"x": 130,
"y": 140,
Expand Down
4 changes: 2 additions & 2 deletions examples/basic/4-event-listener.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}",
"payloadType": "json",
"x": 130,
"y": 220,
Expand Down Expand Up @@ -252,7 +252,7 @@
"once": false,
"onceDelay": 0.1,
"topic": "set-listener",
"payload": "{\"controller\":{\"controller\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"address\":\"192.168.1.100\",\"port\":60001}",
"payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"address\":\"192.168.1.100\",\"port\":60001}",
"payloadType": "json",
"x": 130,
"y": 340,
Expand Down
Loading

0 comments on commit 05699af

Please sign in to comment.