The Milli5-Arduino CoAP Server consists of five sub-folders:
Folder Name | Content |
---|---|
mshield | Contains an Arduino sketch that uses the MilliShield libraries |
hdlc | The HDLC library |
coap_server | The CoAP Server library |
coap_rsrcs | Library of CoAP resources; sensors, time, etc. |
utils | The Utils library containing logging and buffer management |
-
Download the folder mshield to your local machine and save it at your preferred location e.g.
C:\mshield
-
Download the remaining four folders to the following location e.g.
C:\Users\<user>\Documents\Arduino\libraries
Note: Replace
<user>
with your username -
Download and install Arduino IDE 1.8.2 https://www.arduino.cc/en/Main/Software
-
Click on mshield.ino located in the
mshield
folder -
In the IDE, go to
Sketch/Include Library/Contributed Libraries
- Select
hdlc
- Repeat Step 5 and select
coap_rsrcs
- Repeat Step 5 and select
utils
- Repeat Step 5 and select
coap_server
- Select
-
In the IDE, go to
Sketch/Include Library/Manage Libraries
- In the search bar, search for RTCZero and install that library
- Do you have the DHT11 sensor?
- If yes, use
Manage Libraries
to locate and install the following:- Adafruit Unified Sensor
- DHT Sensor Library
- If yes, use