adafruit dashboard
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

adafruit dashboard

by mindaugasgi on Tue Dec 08, 2015 8:06 am

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?

Posts: 2
Joined: Tue Dec 08, 2015 5:00 am

Re: adafruit dashboard

by MikeTeachman on Wed Dec 09, 2015 8:56 pm

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:

The hedgehog!

The code snips for AIO

Code: Select all | TOGGLE FULL SIZE
#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()
  // Initialize the Adafruit IO client class

void loop()

    // push accumulated distance to Adafruit IO

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();
    // Serial.println(F("Arduino connected to network using DHCP"));
    // Serial.println();
  // Serial.print(F("My IP address: "));
  // Serial.println(Ethernet.localIP());


Posts: 14
Joined: Mon Nov 25, 2013 10:52 pm

Please be positive and constructive with your questions and comments.