Publish Data to the IoT Hub
-
Create a data point and add an _address config:
Topic: devices/device1/messages/events/data (data can be configured)
Mode: Publish
- In Azure open <your IoT hub>/Built-in endpoints and copy the Event Hub compatible endpoint connection string.
- In VS-Code right-click your device and select Start Monitoring Built-in Event Endpoint from the Pop-up. Paste the connection string from Azure:
- If you now publish data in WinCC OA, you can also see it in VS-Code: