The code for this project can be found on the GitHub repository for the project.
I won't detail everything here, you can have a look at the Arduino & Xively project for more details, and of course you can find all the code on our GitHub repository for this project. The first difference with other cloud services is that you need to set your API key in the sketch, but also the device you want to send data to:
#define WEBSITE "api.carriots.com" #define API_KEY "yourAPIkey" #define DEVICE "yourDeviceName@yourUserName"
{ "protocol":"v2", "at":"now", "device":"yourDevice@yourUserName", "data":{ "Temperature":"21.05", "Humidity":"58.50" }, "checksum":"" }
You can get the whole Arduino sketch from the GitHub repository, modify the required parts like your WiFi SSID & password and your Carriots account data, and finally upload the code to your Arduino board. You can now open the serial monitor and check if the Arduino is sending data to the Carriots server: