JMayrbaeurl / opendigitaltwins-aas-azureservices

Sample Industry 4.0 Asset Administration Shell API for Azure Digital Twins
MIT License
17 stars 2 forks source link

[AASX CLI] Create AAS from IoT PnP model #3

Open JMayrbaeurl opened 2 years ago

JMayrbaeurl commented 2 years ago

E.g. by reading an IoT PnP model definition (e.g. https://devicemodels.azure.com/dtmi/com/example/temperaturecontroller-1.expanded.json ) create an AAS in-memory instance and 1) import it into ADT and 2) save it as ".aasx" package file.

JMayrbaeurl commented 2 years ago

Use DTDL Parser Library to parse the IoT PnP model definition file: https://docs.microsoft.com/en-us/azure/digital-twins/how-to-parse-models . Must be expanded versions. Map DeviceInformation interface to AAS submodel 'Nameplate'.