From 020c2ea536d3a29b125130a3d0a1d22f66ff369b Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 2 Aug 2019 19:08:04 +0100 Subject: [PATCH] registers adjusted to real world --- src/registers.json | 80 ++++------------------------------------------ 1 file changed, 6 insertions(+), 74 deletions(-) diff --git a/src/registers.json b/src/registers.json index e5f1b44..7d39c54 100644 --- a/src/registers.json +++ b/src/registers.json @@ -32,91 +32,23 @@ "converter": null, "count": 1, "label": "Switches", - "publishTopic": "Pub/Switches", + "publishTopic": "IoT/Status/Modbus2/Switches", "scanRate": 0.5, "unit": 4, "updateOnly": false }, "type": "DiscreteInputDatapoint" }, - { - "args": { - "address": 40010, - "converter": "uint32", - "count": 2, - "feedbackTopic": "FB/Counter1", - "label": "Counter1", - "publishTopic": "Pub/Counter1", - "scanRate": 1.0, - "subscribeTopic": "Sub/Counter1", - "unit": 4 - }, - "type": "HoldingRegisterDatapoint" - }, - { - "args": { - "address": 40012, - "converter": "uint32", - "count": 2, - "feedbackTopic": "FB/Counter2", - "label": "Counter2", - "publishTopic": "Pub/Counter2", - "scanRate": null, - "subscribeTopic": "Pub/Counter2", - "unit": 4 - }, - "type": "HoldingRegisterDatapoint" - }, - { - "args": { - "address": 40014, - "converter": "uint32", - "count": 2, - "feedbackTopic": "FB/Counter3", - "label": "Counter3", - "publishTopic": "Pub/Counter3", - "scanRate": null, - "subscribeTopic": "FB/Counter3", - "unit": 4 - }, - "type": "HoldingRegisterDatapoint" - }, - { - "args": { - "address": 40016, - "converter": "uint32", - "count": 2, - "feedbackTopic": "FB/Counter4", - "label": "Counter4", - "publishTopic": "Pub/Counter4", - "scanRate": 1.0, - "subscribeTopic": "Sub/Counter4", - "unit": 4 - }, - "type": "HoldingRegisterDatapoint" - }, { "args": { "address": 0, - "feedbackTopic": "FB/Coil1", + "feedbackTopic": "IoT/Feedback/Modbus2/Coils/1", "label": "Coil1", - "publishTopic": "Pub/Coil1", - "scanRate": 1.0, - "subscribeTopic": "Sub/Coil1", - "unit": 4 - }, - "type": "CoilDatapoint" - }, - { - "args": { - "address": 1, - "feedbackTopic": "FB/Coil2", - "label": "Coil2", - "publishTopic": "Pub/Coil2", - "scanRate": 1.0, - "subscribeTopic": "Sub/Coil2", + "publishTopic": "IoT/Status/Modbus2/Coils/1", + "scanRate": 0.0, + "subscribeTopic": "IoT/Action/Modbus2/Coils/1", "unit": 4 }, "type": "CoilDatapoint" } -] \ No newline at end of file +]