I am using OPC publisher to read values from an OPC ua server (siemens s7-1200) at a given interval, this works fine but when there is no connection between the server and the client I don't recieve any messages in iot hub.
I want to keep sending messages with a message of some sort that says that there is no connection between the server and OPC publisher device. How can I do this? The only thing I currently have is a log file.
Settings:
"Cmd": [
"-c",
"--PkiRootPath=/mount/pki",
"--pf=/mount/published_nodes.json",
"--lf=/mount/publisher.log",
"--mm=PubSub",
"--me=Json",
"--fd=false",
"--bs=100",
"--bi=1000",
"--di=20"
"--aa"
],
Opc endpoint connected? : False
I can only see in the log file that the endpoint is not connected. I want to recieve messages in IotHub that says it is not connected.