So, I'm trying to test out how it might be possible to link a component to an OPC tag and an MQTT tag.
This test is based on a system for fail over. In short there are some remote sites that will be polled for their data. Pump runtimes, status, faults etc. The primary means of communication will be MQTT.
Now if this primary communication method fails then the backup method to obtain information will be OPC.
I'm having trouble tying this into my project as currently I have all my components on screen linked via OPC.
What I'm trying to do is have a component, let's say a pushbutton for example take its data via MQTT so long as that communication method is active. Then if MQTT comms were to fail, start reading its data via OPC. I'm just having trouble putting this all together in the designer on my components.
Would the best route be creating a custom property on the component based on the state of MQTT? Then if it were to fail have another custom property linked to OPC?