adafruit dashboard
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- mindaugasgi
- Posts: 2
- Joined: Tue Dec 08, 2015 5:00 am
adafruit dashboard
Hello, I have Arduino Uno and Ethernet shield, and I want to connect to adafruit dashboard. When I send URL request from browser, it is work, but I cant connect with Arduino. I found examples with c3300, maybe someone have examples with ethernet shield? Can you help me with it? Do you have some ideas maybe?
- MikeTeachman
- Posts: 14
- Joined: Mon Nov 25, 2013 10:52 pm
Re: adafruit dashboard
Hi... I use an Arduino UNO + Ethernet shield for our hedgehog monitoring dashboard. I cut out some code snips that might help?
The hedgehog dashboard:
https://io.adafruit.com/MikeTeachman/sir-charles
The hedgehog!
https://sites.google.com/site/sircharlesruns/statistics
The code snips for AIO
The hedgehog dashboard:
https://io.adafruit.com/MikeTeachman/sir-charles
The hedgehog!
https://sites.google.com/site/sircharlesruns/statistics
The code snips for AIO
Code: Select all
#include <Ethernet.h>
#include "Adafruit_IO_Client.h"
#define AIO_KEY "your aio key"
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
EthernetClient client;
Adafruit_IO_Client aio = Adafruit_IO_Client(client, AIO_KEY);
Adafruit_IO_Feed hedgieDistance = aio.getFeed("hhd");
Adafruit_IO_Feed hedgieTemperature = aio.getFeed("hht");
Adafruit_IO_Feed hedgieUptime = aio.getFeed("hhu");
void setup()
{
setupEthernet();
// Initialize the Adafruit IO client class
aio.begin();
}
void loop()
{
hedgieTemperature.send(tempsensor.readTempC());
hedgieUptime.send(uptimeInMinutes);
// push accumulated distance to Adafruit IO
hedgieDistance.send(convertCmsToM(nightStats.totalDistanceInCm));
}
void setupEthernet()
{
// Serial.println(F("Connecting Arduino to network..."));
// Serial.println();
// start the Ethernet connection:
if (Ethernet.begin(mac) == 0)
{
// Serial.println(F("DHCP Failed, reset Arduino to try again"));
// Serial.println();
}
else
{
// Serial.println(F("Arduino connected to network using DHCP"));
// Serial.println();
}
// Serial.print(F("My IP address: "));
// Serial.println(Ethernet.localIP());
}
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.