Can't run Projectlab sample "Send anvironmental data from a BME688 to Azure IoT Hub"

 Esp32Events [char]
 Esp32Requests [char]
 IncomingEvents [char]
 Meadow successfully deleted '/meadow0/meadow.log'
 Meadow successfully deleted '/meadow0/dns.conf'
 Meadow successfully deleted '/meadow0/Meadow.OS.Runtime.bin'
 Mono is disabled
 Mono has been enabled - restarting Meadow
 Mono will not start - the following file is missing: App.exe
 Mono is enabled
 Mono will not start - the following file is missing: App.exe

Have tried the mono update but did not solve it.

In another app, run after the attempt above, that works I get:

 File 90% downloaded
 Download of 'System.pdb' success (checksums calculated:0x476ACEBB, expected:0x476ACEBB)
 Mono is disabled
 Mono has been enabled - restarting Meadow
 Meadow successfully started MONO
 Mono is enabled
 Meadow successfully started MONO
Initializing OS...

I think that issue should have been resolved in the 1.3.4 release which went out this week.

Can you please confirm the OS version number.

Regards,
Mark

v 1.3.1.3
I’ll Try 1.3.4

Seems its is version 1.3.4.0 not 1.3.4

Updated now get to:

 Esp32Events [char]
 Esp32Requests [char]
 IncomingEvents [char]
 Meadow successfully deleted '/meadow0/meadow.log'
 Meadow successfully deleted '/meadow0/dns.conf'
 Mono is disabled
 Mono has been enabled - restarting Meadow
 Meadow successfully started MONO
 Mono is enabled
 Meadow successfully started MONO

Doesn’t progress to call Initialize().
Then crashes Visual Studio after about 1 minute!

Repeated this a few times.

OK 2xMy Bads

Runs now but think I’ve got a SAS problem.
Amqp.AmqpException: ‘Sasl negotiation failed with code Sys.’

1 Like

All good.
Latest problem was that the SAS token needed updating. Worth noting that they are, as I understand it, temporary???

“Tokens typically are valid for 12 hours (unless set to another value during registration).” From the command line

az iot hub generate-sas-token --help
Arguments
    --device-id -d      : Target Device.
    --du --duration     : Valid token duration in seconds.  Default: 3600.

Looks like default duration is only 1hr here.

Also ,it is concerning that the sample apps required an un-noted OS version.

1 Like

thank you for posting about the --duration parameter… Just the answer I needed.