Version: v0.9.4
Description:
This project provides a simple example of how to use the ConsentiumThingsDalton IoT board to read sensor data and send it over HTTPS (only ESP32 supported) to the ConsentiumThings cloud.
How to use:
- Clone this repository to your local machine.
- Install the Arduino IDE.
- Connect the ConsentiumThingsDalton board to your computer using a USB cable.
- Open the Arduino IDE and open the
ThingsUpdate.ino
file. - Enter your WiFi SSID and password in the
ssid
andpass
variables, respectively. - Enter your ConsentiumThings API key in the
ApiKey
variable. - Enter your ConsentiumThings board API key in the
BoardApiKey
variable. - Upload the code to the ConsentiumThingsDalton board.
- The board will start reading sensor data and sending it over REST to the ConsentiumThings cloud every 7 seconds.
Notes:
- You can change the sampling interval by changing the
interval
variable. - You can change the precision of the data sent over REST by changing the
pre
variable. - You can add additional sensors to the board by connecting them to the appropriate pins and updating the
sensorCount
variable and thesensorValues
andsensorInfo
arrays. - You can connect an LED to GPIO 16 for ESP 8266, GPIO 23 for ESP 32 and GPIO 25 for Raspberry Pi Pico W to indicate the REST events. License:
This project is licensed under the MIT License.
Badges:
Contributing:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- The Arduino IDE and ArduinoCore-API are developed and maintained by the Arduino team. The IDE is licensed under GPL.
- The RP2040 GCC-based toolchain is licensed under under the GPL.
- The Pico-SDK is by Raspberry Pi (Trading) Ltd and licensed under the BSD 3-Clause license.
- The [ESP8266 Libraries] modified from ESP8266 Core Development Team: GitHub
- The [ESP32 Libraries are part of Espressif Systems]: Website ESP32 Arduino Core Development Team: GitHub