Code Monkey home page Code Monkey logo

Comments (3)

bo-ms avatar bo-ms commented on June 25, 2024

Hi @chenhui-zhao Thanks for asking. ADU agent initial release is 6.2.0. The interfaceId has been updated to contractModelId in 6.2.1 for ADU Service GA.

On ADU service side, both interfaceId and contractModelId are supported, user need to make sure that the sample uses the corresponding mode id with the source file, for example: using contractModelId for “dtmi:azure:iot:deviceUpdateModel;2” in 6.2.1 and later (refer to the sample and dtdl file thermostat-4.json), and using interfaceId for “dtmi:azure:iot:deviceUpdateModel;1” in 6.2.0 (check the sample and dtdl fle thermostat-3.json).

contractModelId as 'dtmi:azure:iot:deviceUpdateContractModel;2'
interfaceId as 'dtmi:azure:iot:deviceUpdateContractModel;1'

In your case, using 6.4.1, you only need to update the correct pnp model id (contractModelId for 'dtmi:azure:iot:deviceUpdateContractModel;2') in the sample, refer to this sample.

FYI: same GitHub issue here: [ADU not functional after removing 'interfaceId' device properties · Issue #208

from netxduo.

chenhui-zhao avatar chenhui-zhao commented on June 25, 2024

Hi @bo-ms Thank you for the quick support. I have resolved it by the following steps:

  1. Change the PNP model ID to
#define SAMPLE_PNP_MODEL_ID           "dtmi:com:example:Thermostat;4"
  1. Change deviceManufacturer and deviceModel to manufacturer and model in the update manifest file as below:
    "compatibility": [ 
      {   
        "manufacturer": "NXP",
        "model": "MIMXRT1xxx"
      }

from netxduo.

bo-ms avatar bo-ms commented on June 25, 2024

Hi @chenhui-zhao Good to know you resolved the issue.

from netxduo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.