-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AzureIoT Sample MSB3073 Error when compiling #32
Comments
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:
Please let us know if this solves the problem, thanks. |
Hi,
Thanks for the info... now the ScopeID is OK.
But the output is:
IoT Hub/Central Application starting.
Setting Azure Scope ID 0ne0004F70C
Opening MT3620_RDB_BUTTON_A as input
Opening MT3620_RDB_BUTTON_B as input
Opening MT3620_RDB_LED4_BLUE as output
Sending IoT Hub Message: { "ButtonPress": "True" }
WARNING: failed to hand over the message to IoTHubClient
I tried to run: azsphere device show-attached
But the Device ID is this and it's unusable:
Device ID:
CC882AAF51E5C47BC40ED1230AB5F647188DB2CC81AA91146487B7CC7A2E538A3B33D0D9AE0EE852F19076044E653F7D6DC6AC64D8618BC5D479156FF4C80BD1
Command completed successfully in 00:00:01.8087000.
and then I ran...ShowIotCentralConfig.
It shows this output, even if I created more than one REAL devices!
Getting your IoT Central applications
You have one IoT Central application 'App Pier'.
Getting the Device Provisioning Service (DPS) information.
Getting a list of IoT Central devices.
Please create a real device in your IoT Central application and try again.
Any idea?
Il 25/03/2019 15:31, Richard Taylor - Microsoft ha scritto:
Hi - you need to configure the app to work with your IoT Central
<https://github.com/Azure/azure-sphere-samples/tree/master/Samples/AzureIoT#configure-the-sample-application-to-work-with-your-azure-sphere-tenant-and-devices>
or to work with your IoT Hub
<https://github.com/Azure/azure-sphere-samples/tree/master/Samples/AzureIoT#configure-the-sample-application-to-work-with-your-azure-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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvaKUSnjWEtAyqgLvIT3hVuBLvqHBfQks5vaN3egaJpZM4cFvoT>.
--
Pier Calderan
*Electronics & Inventions:
* *Pierduino* Piccoli grandi progetti fai da te www.pierduino.com
*Cremona Musica (Artistic Advisor)* www.cremonamusica.com
*Audio Video & Music* www.audiovideomusic.com
*Tel.* +39 328 2117593
*Skype ID* pierduino <skype:pierduino>
***********************************************************************************************************************************
Le informazioni trasmesse attraverso la presente e-mail ed i suoi
allegati sono diretti esclusivamente
al destinatario e devono ritenersi riservati con divieto di diffusione e
di uso nei giudizi salva espressa autorizzazione
Nel caso di utilizzo senza espressa autorizzazione, verrà effettuata
denuncia al competente Consiglio dell’Ordine
per violazione dell’art. 28 del Codice Deontologico. La diffusione e la
comunicazione da parte di soggetto diverso
dal destinatario è vietata dall’art. 616 e ss. c.p. e dal d. l.vo n. 196/03.
Se la presente e-mail ed si suoi allegati fossero stati ricevuti per
errore da persona diversa dal destinatario
siete pregati di distruggere tutto quanto ricevuto e di informare il
mittente con lo stesso mezzo.
***********************************************************************************************************************************
…---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus
|
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. |
... even if I make lower-case the number id is not valid.
it should be in the form of:
ComponentId": "14d320f2-fd25-447b-858f-8d174cb5e931"
as required in app_manifest.json.
Il 25/03/2019 19:46, Richard Taylor - Microsoft ha scritto:
Hi - are you having problems at steps 11 and 12 of the IoT Central
configuration
<https://github.com/Azure/azure-sphere-samples/tree/master/Samples/AzureIoT#run-the-sample-with-azure-iot-central>?
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvaKQvTwX19aairFdnN8JujiQYXQWneks5vaRlygaJpZM4cFvoT>.
--
Pier Calderan
*Electronics & Inventions:
* *Pierduino* Piccoli grandi progetti fai da te www.pierduino.com
*Cremona Musica (Artistic Advisor)* www.cremonamusica.com
*Audio Video & Music* www.audiovideomusic.com
*Tel.* +39 328 2117593
*Skype ID* pierduino <skype:pierduino>
***********************************************************************************************************************************
Le informazioni trasmesse attraverso la presente e-mail ed i suoi
allegati sono diretti esclusivamente
al destinatario e devono ritenersi riservati con divieto di diffusione e
di uso nei giudizi salva espressa autorizzazione
Nel caso di utilizzo senza espressa autorizzazione, verrà effettuata
denuncia al competente Consiglio dell’Ordine
per violazione dell’art. 28 del Codice Deontologico. La diffusione e la
comunicazione da parte di soggetto diverso
dal destinatario è vietata dall’art. 616 e ss. c.p. e dal d. l.vo n. 196/03.
Se la presente e-mail ed si suoi allegati fossero stati ricevuti per
errore da persona diversa dal destinatario
siete pregati di distruggere tutto quanto ricevuto e di informare il
mittente con lo stesso mezzo.
***********************************************************************************************************************************
…---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus
|
... the problem is here
azsphere device show-attached
dos not show device id
Il 25/03/2019 19:46, Richard Taylor - Microsoft ha scritto:
Hi - are you having problems at steps 11 and 12 of the IoT Central
configuration
<https://github.com/Azure/azure-sphere-samples/tree/master/Samples/AzureIoT#run-the-sample-with-azure-iot-central>?
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvaKQvTwX19aairFdnN8JujiQYXQWneks5vaRlygaJpZM4cFvoT>.
--
Pier Calderan
*Electronics & Inventions:
* *Pierduino* Piccoli grandi progetti fai da te www.pierduino.com
*Cremona Musica (Artistic Advisor)* www.cremonamusica.com
*Audio Video & Music* www.audiovideomusic.com
*Tel.* +39 328 2117593
*Skype ID* pierduino <skype:pierduino>
***********************************************************************************************************************************
Le informazioni trasmesse attraverso la presente e-mail ed i suoi
allegati sono diretti esclusivamente
al destinatario e devono ritenersi riservati con divieto di diffusione e
di uso nei giudizi salva espressa autorizzazione
Nel caso di utilizzo senza espressa autorizzazione, verrà effettuata
denuncia al competente Consiglio dell’Ordine
per violazione dell’art. 28 del Codice Deontologico. La diffusione e la
comunicazione da parte di soggetto diverso
dal destinatario è vietata dall’art. 616 e ss. c.p. e dal d. l.vo n. 196/03.
Se la presente e-mail ed si suoi allegati fossero stati ricevuti per
errore da persona diversa dal destinatario
siete pregati di distruggere tutto quanto ricevuto e di informare il
mittente con lo stesso mezzo.
***********************************************************************************************************************************
…---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus
|
The component ID is not the same as a device ID.
If this still doesn't work, to help us to help you further, please could you attach:
Thanks. |
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. |
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. |
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. |
This is the output when compiling:
Gravità Codice Descrizione Progetto File Riga Stato eliminazione
Errore MSB3073 uscita dal comando "%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File "C:\Users\pier\Desktop\azure-sphere-samples-master\Samples\AzureIoT\AzureIoT\script\validate_manifest.ps1
:VCEnd" con codice 1. AzureIoT C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 128
The text was updated successfully, but these errors were encountered: