Industrial-IoT icon indicating copy to clipboard operation
Industrial-IoT copied to clipboard

Direct Methods Reference

Open Padu98 opened this issue 3 years ago • 4 comments

Is there any documentation about the direct methods which can be used to access the edge modules? I just deployed the minimal srcript and was wondering how to call the twin moduls without the opc-cloud-microservices running. I know that there is a lot of documentation about the rest api which cant be to far off the direct mehtod calls.

Padu98 avatar Dec 19 '21 21:12 Padu98

I have the same question... We would like to use as many of the "off the shelf" modules supplied by Microsoft as possible however we have a requirement to be able to operate for up to 10 days without an internet connection. For this reason we cannot rely on running our business logic against the OPC Twin Micorservice REST API, which to my knowledge, can only be deployed in the Azure cloud. We are currently using the OPC Publisher module for telemetry but now need to implement the control side of our application. Is it possible to access the OPC Twin module locally from the edge hub/device it is running on? If so is there documentation that describes how this can be accomplished?

mike-romanowski avatar Dec 20 '21 23:12 mike-romanowski

@Padu98 , @mike-romanowski we have no plans to document the direct method interface of the modules which are part of the Industrial-IoT platform. those are part of an E2E solution and built to work in this setup.

We see a need for a direct method interface of the industrial modules and will address this in the near future:

  • OPC Publisher will support a DM interface in standalone mode in the next version of the Industrial-IoT Platform (but not in orchestrated mode, which is the E2E use case i mentioned above)
  • In the near future there will be a module available, which supports OPC Twin like functionality in standalone mode.

Can you both let me know which specific functionality you are looking for?

hansgschossmann avatar Dec 21 '21 13:12 hansgschossmann

We are looking for a method to set and get variables on an OPC-UA server programmatically. We were thinking that the OPC Twin module would have worked well if it had a locally accessible interface. We have a requirement to function with only local network availability due to the possibility of losing internet access for days in the environments in which our systems are deployed. What is the estimated release date of the new module that will have OPC Twin like functionality? If you are looking for someone to test this module we would likely be open to that. We can develop a completely custom module to meet our needs but prefer to go with off the shelf components as much as possible instead of "reinventing wheels". We currently use OPC Publisher in stand alone mode which should continue to work well for us in the future.

mike-romanowski avatar Dec 21 '21 15:12 mike-romanowski

@mike-romanowski thanks for your answers. we plan to have something at private preview quality in the next 6 months for OPC Twin like functionality. in the same timeframe there will also be the update to OPC Publisher available.

If i do not reply to this issue till end of march, pls ping me here for an update.

hansgschossmann avatar Jan 11 '22 12:01 hansgschossmann

@hansgschossmann any news or maybe ETA for the standalone OPC Twin like module?

emulic avatar Dec 04 '22 08:12 emulic

The directmethods API of OPC Publisher 2.9.0 preview 4 is documented in the docs/ folder: https://github.com/Azure/Industrial-IoT/blob/main/docs/opc-publisher/readme.md#programming-against-opc-publisher-using-the-opc-publisher-api. Please see https://github.com/Azure/Industrial-IoT/blob/main/docs/opc-publisher/features.md for support and feature state of each API and transport.

marcschier avatar Jun 22 '23 10:06 marcschier