firedog1024 / mkr1000-iotc Goto Github PK
View Code? Open in Web Editor NEWConnecting an Arduino MKR1000 to Azure IoT Central
License: MIT License
Connecting an Arduino MKR1000 to Azure IoT Central
License: MIT License
Hi!
Having trouble getting this running on an MKR1000.
Using Arduino 1.8.9. Double checked everything is ok in IoT Central. I downgraded the WiFi101 to the version mentioned in readme, but that did nothing. Reuploaded the SSL-certificates. Not sure what to try next...
Serial output is as follows:
16:00:10.758 -> Getting the time from time service:
16:00:10.826 -> Current time: 28. May 2019 - Tuesday 14:00:10
16:00:10.928 -> Getting IoT Hub host from Azure IoT DPS
16:00:11.236 -> ERROR: Couldn't connect AzureIOT DPS endpoint.
16:00:31.231 -> Starting IoT Hub connection
16:00:51.206 -> ---> mqtt failed, rc=-2
...and so on...
I receive the following error, I have tried several ways to add it manually but failed.
Compilation error: 'fcvt' was not declared in this scope
The fcvt is called in the utilsh.h
Hello,
I have the compiling error: avr/pgmspace.h: No such file or directory
I installed all the libraries for MKR1010 and downloaded the newest version of the Arduino IDE. What is wrong?
Thanks in advance
Hello,
The code was working fine on mkr 1010 then suddenly it stopped giving the below error.
23:58:08.153 -> Getting the time from time service:
23:58:08.560 -> Current time: 11. January 2020 - Saturday 19:58:07
23:58:08.594 -> Getting IoT Hub host from Azure IoT DPS
23:58:30.677 -> Starting IoT Hub connection
23:58:34.782 -> ---> mqtt failed, rc=-1
23:58:40.812 -> ---> mqtt failed, rc=-1
23:58:46.970 -> ---> mqtt failed, rc=-1
23:58:53.094 -> ---> mqtt failed, rc=-1
23:58:59.134 -> ---> mqtt failed, rc=-1
23:59:05.212 -> ---> mqtt failed, rc=-1
23:59:11.243 -> ---> mqtt failed, rc=-1
23:59:17.278 -> ---> mqtt failed, rc=-1
23:59:23.302 -> ---> mqtt failed, rc=-1
23:59:38.578 -> ---> mqtt failed, rc=-1
The only change i made was on the IoT Hub Central side where i created an Admin API key.
Any help ?
Thanks,
Yehia
error: 'fcvt' was not declared in this scope
I followed each and every step in readme.md instructions, event though I'm getting this problem.
I installed all the mentioned libraries. I'm using DHT22 sensor and mkr1000 board.
Hey FD: Nice work. I am trying to get your code running on a MKR 1010. I have everything configured, but I cant find the Scope ID in my IoT Hub. Central has been depreciated. I tried commenting out scope ID and I get a "---> mqtt failed, rc=-2" when it sends. Any Ideas?
I get the following error when compiling
variable 'iotc_scopeId' must be const in order to be put into read-only section by means of 'attribute((progmem))'
I get past it by changing the variables in the config.h
static char PROGMEM iotc_scopeId[]
static char PROGMEM iotc_deviceId[]
static char PROGMEM iotc_deviceKey[]
static char PROGMEM iotConnStr[]
to
static const char PROGMEM iotc_scopeId[
static const char PROGMEM iotc_deviceId[]
static const char PROGMEM iotConnStr[]
but now i am getting the following error.
'fcvt' was not declared in this scope
can you please help.
Hiya,
Thanks for the guide, hoping you might be able to give me a hand. I had troubles with
ERROR: Couldn't connect AzureIOT DPS endpoint.
as in #3 but followed what nahojkj did and now I'm getting
23:33:06.251 -> Getting IoT Hub host from Azure IoT DPS
23:33:12.088 -> Starting IoT Hub connection
23:33:23.147 -> ---> mqtt failed, rc=5
Any ideas what this means? I've had a search around and not been able to find much to help.
Cheers,
S
Should be pretty straightforward. If groupKey is provided instead of a deviceKey, an HMAC signature should be computed for the 'deviceId' using said group key. Since I have it working on my fork (not committed yet) I will eventually submit a patch as part of a larger pull request, I guess :)
Hi thanks for the amazing guideline
I've read #2 and #3 but still facing rc=-2 problem as below
16:48:04.885 -> Getting the time from time service:
16:48:04.920 -> Current time: 29. August 2020 - Saturday 07:48:05
16:48:04.955 -> Getting IoT Hub host from Azure IoT DPS
16:48:15.020 -> Starting IoT Hub connection
16:48:25.205 -> ---> mqtt failed, rc=-2
16:48:37.233 -> ---> mqtt failed, rc=-2
16:48:49.262 -> ---> mqtt failed, rc=-2
16:49:01.284 -> ---> mqtt failed, rc=-2
.
.
.
And I did not get couldn't connect to DPS error message like this post , anyone know how should I fix this problem ?
hello sir, I am trying to connect to Azure IOT hub with Arduino MKR GSM 1400. When I try to compile I am getting this error:
What need to be change to accept my board ? Connection to cellular network, SSL communication, X509 self cert no problem, the issue is to utilize device twin.
Arduino: 1.8.10 (Windows 10), Board: "Arduino MKR GSM 1400"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x7855fb]
goroutine 1 [running]:
github.com/arduino/arduino-cli/legacy/builder.ResolveLibrary(0x11cea5a0, 0x120a0229, 0x9, 0x120a0229)
/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/resolve_library.go:64 +0x14b
github.com/arduino/arduino-cli/legacy/builder.findIncludesUntilDone(0x11cea5a0, 0x11d3d200, 0x88ed00, 0x11c9ce40, 0x11c07ce0, 0x11d72400, 0x0)
/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/container_find_includes.go:358 +0x3b6
github.com/arduino/arduino-cli/legacy/builder.(*ContainerFindIncludes).Run(0xdebc68, 0x11cea5a0, 0xdebc68, 0x0)
/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/container_find_includes.go:152 +0x3e5
github.com/arduino/arduino-cli/legacy/builder.runCommands(0x11cea5a0, 0x11c3be1c, 0x20, 0x20, 0x409a01, 0xffff, 0x0)
/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/builder.go:210 +0xbd
github.com/arduino/arduino-cli/legacy/builder.(*Builder).Run(0x11c79f40, 0x11cea5a0, 0xdebbb4, 0x11c4ac88)
/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/builder.go:117 +0xb9c
github.com/arduino/arduino-cli/legacy/builder.RunBuilder(...)
/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/builder.go:226
main.main()
/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-builder/main.go:398 +0x6d2
C:\Program Files (x86)\Arduino\arduino-builder returned 2
Error compiling for board Arduino MKR GSM 1400.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.