This is a simple OPC UA server, client, publisher and subscriber network example using C#/.NETv8 and the OPC Foundation SDK. It also contains a custom OPC UA model, written in XML and compiled with the UA-ModelCompiler.
- Open
OpcUaDemo.sln
with Visual Studio 2022 - Set
SimulationHost
as startup application - Get the connection details to your MQTT broker
- Modify the MqttCommon/Config.cs (broker host/port)
- Run the example
To get some insights of the OPC UA server, use a OPC UA browser like Prosys OPC UA Browser (there are many others).
To watch the mqtt stream, use a Mqtt client, such as MQTT.fx.