Coder Social home page Coder Social logo

Comments (10)

richardtaylorrt avatar richardtaylorrt commented on June 27, 2024

Hi - you need to configure the app to work with your IoT Central or to work with your IoT Hub.

If you switch to the "Output -> Build" panel in Visual Studio, you will see this advice:

1>------ Build started: Project: AzureIoT, Configuration: Debug ARM ------
1>Validating project app_manifest.json
1>CmdArgs is empty, this needs to contain the ScopeId for your IoT Hub/Central application
1>The app_manifest.json 'AllowedConnections' needs to contain:
1>  Your IoT Hub/Central application Endpoint address
1>The app_manifest.json file contains a placeholder 'DeviceAuthentication'
1>this needs to be replaced with your Azure Sphere Tenant Id
1>This can be obtained using the Azure Sphere Developer Command Prompt
1>'azsphere tenant show-selected'
...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Please let us know if this solves the problem, thanks.

from azure-sphere-samples.

piercalderan avatar piercalderan commented on June 27, 2024

from azure-sphere-samples.

richardtaylorrt avatar richardtaylorrt commented on June 27, 2024

Hi - are you having problems at steps 11 and 12 of the IoT Central configuration? Note the need to run a powershell command to convert the device ID into lower case letters. If this doesn't work, please send a screenshot of the error you see, or of your successfully created 'real' device in IoT Central. Thanks.

from azure-sphere-samples.

piercalderan avatar piercalderan commented on June 27, 2024

from azure-sphere-samples.

piercalderan avatar piercalderan commented on June 27, 2024

from azure-sphere-samples.

richardtaylorrt avatar richardtaylorrt commented on June 27, 2024

The component ID is not the same as a device ID.

  • You do not need to change the component ID in the app manifest. The existing value of "819255ff-8640-41fd-aea7-f85d34c491d5" will work fine.
  • You do need to use your device ID (128 hex digits in lower case) to create a real device in Azure IoT Central (steps 11 and 12). Does this work for you?
  • Once you have a real device, you can run "ShowIoTCentralConfig". It will tell you what you need to put in your manifest.

If this still doesn't work, to help us to help you further, please could you attach:

  1. a screenshot of your device created in IoT Central
  2. the output from running "ShowIoTCentralConfig"
  3. the output from the "Output -> Build" panel in Visual Studio

Thanks.

from azure-sphere-samples.

piercalderan avatar piercalderan commented on June 27, 2024

Hi, here the result following your instructions (Please see the screenshots).
If your MT3260 is really working, please make the screenshot that you make on your side.
Thank you.

Immagine 1
Immagine 2
Immagine 3
Immagine 4
Immagine 5
Immagine 6
Immagine 7

from azure-sphere-samples.

richardtaylorrt avatar richardtaylorrt commented on June 27, 2024

Thanks for the additional information. There may be an issue with creating devices in IoT Central, which is impacting you. We are investigating and will update here as soon as we can.

from azure-sphere-samples.

m-chau avatar m-chau commented on June 27, 2024

I am having the same issue where I have created "real" devices in my IoT Central application but the ShowIoTCentralConfig.exe fails to find them. Please keep us updated on the resolution. Thank you.

from azure-sphere-samples.

richardtaylorrt avatar richardtaylorrt commented on June 27, 2024

Hi @piercalderan , @m-chau - some fixes have been made to IoT Central and to the "ShowIoTCentralConfig" tool. Please can you pull the latest, retry, and let us know if any further problems in getting this app to run. Thanks.

from azure-sphere-samples.

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.