Comments (3)
The code was designed to work against Azure IoT Central (https://azure.microsoft.com/en-us/services/iot-central/). The ScopeID is specific to IoT Central as we use the Device Provisioning Service to get the IoT Hub to connect to. To make this work with a regular Azure IoT Hub you will need to change the code so it works like a MKR1000 (due to technical issues we cannot get this device to work with DPS yet so it drops back to a connection string). Look at the code in mkr10x0_iotc.ino and change line 25 to be mkr_devices mkrdevice = MKR1000; Then paste in the device connection string into line 5 of configure.h and you should be good to go!
from mkr1000-iotc.
Hey FD: Thanks. That worked. I get:
Sending telemetry ...
{"temp": 62.12, "humidity": 67.22}
--> IoT Hub acknowledges successful receipt of twin property: 2
I am going to try to understand your code a little better and pull out some of the Central code. I am preparing for the MKR 1500 when it starts to ship.
Thanks again.
from mkr1000-iotc.
Excellent, glad I could help you out. Yes you can pull out the code specific to IoT Central and reduce the firmware size. We're also excited for the MKR1500 as it opens up low power communication to Azure IoT. If you run into any other problems feel free to ping me and I'll try and help out. For now I'm going to close this issue.
from mkr1000-iotc.
Related Issues (11)
- mqtt failed, rc=-2 on MKR1010 HOT 1
- avr/pgmspace.h: No such file or directory
- Compilation error: 'fcvt' was not declared in this scope
- Error compiling HOT 8
- ---> mqtt failed, rc=-2 issue on MKR1000 HOT 6
- Add support for group enrollments HOT 2
- compilation error HOT 1
- MKR GSM 1400, compile error
- ---> mqtt failed, rc=5 HOT 1
- mqtt failed, rc=-1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkr1000-iotc.