fix HeartbeatInterval setting in config sample, add more doc for it in readme
This commit is contained in:
Родитель
89c71acb09
Коммит
4c1d3cefc6
12
README.md
12
README.md
|
@ -59,6 +59,18 @@ An example for the format of the configuration file is:
|
|||
}
|
||||
]
|
||||
|
||||
If you want to publish node values even they have not changed after a certain amount of time (with this you can also publish static node values regularily), then you can add the `HeartbeatInterval` key to a node configuration. This specifies a value in seconds
|
||||
where the last value should be resent, even it has not changed:
|
||||
|
||||
"HeartbeatInterval": 3600,
|
||||
|
||||
To prevent sending the value of a node at startup, you can add the `SkipFirst` key to a node configuration:
|
||||
|
||||
"SkipFirst": true,
|
||||
|
||||
Both configurations settings can be enabled for all nodes in your configuration file via command line options as well.
|
||||
|
||||
|
||||
### Configuration via OPC UA method calls
|
||||
OPC Publisher has an OPC UA Server integrated, which can be accessed on port 62222. If the hostname is `publisher`, then the URI of the endpoint is: `opc.tcp://publisher:62222/UA/Publisher`
|
||||
This endpoint exposes five methods:
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// specifies the publishing interval OPC Publisher requests the server to publish the node value, it will only be published if the value has changed
|
||||
"OpcPublishingInterval": 5000,
|
||||
// specifies that there should be a heartbeat generated by OPC Publisher, this means that after the given interval the last message will be sent again with an updated SourceTimestamp value.
|
||||
"Heartbeat": 3600,
|
||||
"HeartbeatInterval": 3600,
|
||||
// specifies that the first event will not generate a telemetry event, this is useful when publishing a large amount of data to prevent a event flood at startup of OPC Publisher
|
||||
"SkipFirst": true
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче