Azure / iot-plugandplay-models

Repository of IoT Plug and Play models using DTDL
MIT License
57 stars 237 forks source link

Template not taken into account in IOT Central #419

Closed tmb-soc closed 1 year ago

tmb-soc commented 2 years ago

It seems that iot-plugandplay-models/dtmi/com/socomec/socomecgateway-1.json template is not taken into account in IOT Central when device is requesting dtmi:com:socomec:socomecgateway;1.

However, no problem with iot-plugandplay-models/dtmi/com/socomec/socomecdevice-1.json when device is requesting dtmi:com:socomec:socomecdevice;1.

image

sandeeppujar commented 2 years ago

@tmb-soc - just to confirm the issue

  1. You connected a device to IoT Central that has a model with relationships (socomecgateway-1)
  2. IoT Central imported the main interface from model repository
  3. The models called out in relationships was not imported - (socomecdevice-1)

Is this correct?

tmb-soc commented 2 years ago

The problem is not what you are describing. Let me explain in details:

  1. I start with an empty device list in the IOT Central application. I take the connection settings from Administration/Device connection (SAS-IoT-Devices) and I put the parameters in my gateway.
  2. The gateway creates itself in the device list with the "group enrollment" method. It sends its model ID socomecgateway-1, but it is not recognized.
  3. The gateway creates the devices in the same way with the socomecdevice-1 model ID. It is correctly recognized and applied in the device list of the IOT Central application.
rido-min commented 1 year ago

Closing as this is not related to this repo. If still require a resolution I'd suggest filing an issue in the Azure IoT Central docs