Please Note: This version is obsolete. It is left for reference only! See the changes.md file for details.
The Milli Sensor API and CoAP Server consists of two folders:
Folder Name | Content |
---|---|
sapi_mshield | The temperature reference application. Uses the Sensor API. |
itron_coap_server | The Itron Sensor API and CoAP Server library |
-
From the Milli5-Sensor API repository, copy the sub-folder
sapi_mshield
toC:\Users\<user>\Documents\Arduino
Note: Replace with your Windows user name. -
Download the folder
itron_coap_server
toC:\Users\<user>\Documents\Arduino\libraries
-
Download and install the Arduino IDE 1.8.10 from https://www.arduino.cc/en/Main/Software
-
In the preferences, locate the field "Additionial Board Manager URLs". Add this URL to the list:
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
-
Using the board manager, add the Adafruit SAMD boards (version 1.5.6). Select the Adafruit Metro M0 Express board.
-
In the folder Arduino\sapi_mshield, click on sapi_mshield.ino and your Arduino IDE will launch
-
In the IDE, go to the Sketch menu and choose Include Library, and select itron_coap_server from the Contributed Libraries section
-
In the IDE, go to Sketch/Include Library/Manage Libraries
-
In the search bar, type RTCZero
-
Click on "More info"
-
In the drop-down menu, select v1.6.0 and click Install
-
The following libraries are needed to support the DHT-11 temp sensor (these are needed even if you do not hook a DHT-11 up):
-
Use Manage Libraries to locate and install the following libraries:
-
Adafruit Unified Sensor v1.0.2
-
DHT Sensor Library v1.3.0
-
Build and upload the application to your Adafruit Metreo M0 Express board. Explore and have fun!