Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Arduino.local

 Arduino.local

Quick success story with Arduino + GitHub

Avatar for Florian Le Goff

Florian Le Goff

April 13, 2013
Tweet

More Decks by Florian Le Goff

Other Decks in Programming

Transcript

  1. Ethernet Shield (on top of an) Arduino Uno 220V/5V 2

    relay board landlord’s radio key
  2. github.com/madflo/arduino-ethernet-2relays void open_door() { digitalWrite(switchOne, HIGH); delay(TIMER_PORTE_AUTO); digitalWrite(switchOne, LOW); }

    // Extract /XYZ from a request line : // GET /XYZ HTTP/XX void get_page(char *line, char *request, char *verb) { int verb_and_space_len = strlen(verb) + 1; // add the space between the verb and the request for (i = 0; line[i + verb_and_space_len] && (line[i + verb_and_space_len] != ' ') && (i < REQUEST_BUFFER_SIZE); i++) request[i] = line[i + verb_and_space_len]; request[i] = 0; }