7/27/2021 3:59 PM | |
Joined: 3/8/2017 Last visit: 11/12/2024 Posts: 16 Rating: (3) |
Hi Lars, you can connect to the IE Databus just like to any other MQTT Broker (e.g. moqsuitto) if you configure your app to be in the "proxy-redirect" network and set the hostname of the broker to "ie-databus". You will then receive the cyclic updates of the PLC values from the OPC Connection. You can also connect to the DataService through a REST API for access to the DataService Database. We only have an example in JavaScript but there are probably numerous tutorials for C# in the web. JS Example: Github Pingpong Please check https://github.com/industrial-edge for more Tutorials. This Developer Guide might also be interesting to you Github Dev Guide ; SIOS Dev Guide |
Last edited by: Berle_C at: 07/27/2021 16:02:35 |
|
7/28/2021 1:27 PM | |
Joined: 4/28/2015 Last visit: 11/7/2024 Posts: 10 Rating: (1) |
Hello Lars, the HowTo Databus Ping Pong C# shows exactly what you are looking for. That is an app example written in C#, that also includes an MQTT client to connect to the Edge Databus and get data out of topics. This data can then be used within the app. |
7/29/2021 1:16 PM | |
Joined: 4/21/2015 Last visit: 10/29/2024 Posts: 33 Rating: (12) |
Hello Lars, I guess you cannot connect to the Dataservice as you are trying to reach to the API via the public IP address. So your app tries to connect from the outside. This only works if you log in to your Edge Device in advance, unfortuanetly there is not yet a public API of the IED available for doing this (to be more precise, there are already APIs, but not yet documented and so not yet released). Fortuanetly I have another idea. You can try to connect to the Data-Service via the internal service name. "https://edgeappdataservice:4203" instead of the external IP. I have not tried by my own to be honest, but you can give it a try. Btw. do you already know the Data Service Development Kit, this is a local Data-Service version, which you can run on your development environment to test the API calls locally. - Dev-Kit |
Last edited by: HummelN at: 07/30/2021 11:34:28 |
|
This contribution was helpful to1 thankful Users |
Follow us on