Git Product home page Git Product logo

mkr1000-iotc's People

Contributors

firedog1024 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mkr1000-iotc's Issues

Add support for group enrollments

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 :)

---> mqtt failed, rc=5

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

compilation error

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.

avr/pgmspace.h: No such file or directory

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

Error compiling

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.

mqtt failed, rc=-2 on MKR1010

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 ?

mqtt failed, rc=-1

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

MKR 1010 Getting a -2 Return Code

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?

---> mqtt failed, rc=-2 issue on MKR1000

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...

MKR GSM 1400, compile error

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

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.