The solution consists of three parts:
- PART 1 - Example Sensor implementation with the Milli Dev Kit
- PART 2 - Ingest sensor measurements into the Data Platform
- PART 3 - Plot the sensor measurements using the Data Platform Plot Reference Application
The following architecture diagram shows how the Milli Developer Kit is connected with sensors as well as the meshed network. The sensors are connected to the Milli Developer Kit mounted on an Arduino Board. The Milli Developer Kit connects to a MiniAP over the RF mesh network. The MiniAP provides backhaul connectivity to the sensor application. The sensor is a CoAP Server. Requests are sent from a client application, located on, for example, a laptop computer, to the CoAP Server running on the microcontroller located on the Arduino board. The example application provided here is a web application for plotting temperature sensor measurements stored in the Data Platform retrieved with the Data Platform APIs .
The Milli Developer Kit for Arduino V1.0 is provided connectivity to the Data Platform through Silver Spring's cloud APIs. Credentials are required to connect to the Data Platform. Requests are forwarded to the CoAP Gateway and consist of a Uniform Resource Identifier (URI) and a Session ID. Authorized requests are sent over the wide area network (WAN) via the MiniAP. A CoAP Proxy Server is implemented in the MilliShield. This Proxy forwards the request using a data link layer protocol called HDLC. Finally, using the microcontroller of the Arduino processor board, the HDLC is parsed out, and the underlying CoAP request is sent to the server running on your Arduino board.