/* * Config Parameters, for arduino_ethernet.pde * * The idea is to keep all config parameters in this file, * and leave arduino_ethernet.pde to be source modifyable. */ #define SEND_FREQ 600 // Mill-seconds #define SEND_IDLE_FREQ 10000 // Mill-seconds #define SERVER_TIMEOUT 5000 // In milliseconds /* My mac address - if you connect more than one arduino, take care to modify this to be unique */ byte mac[] = { 0xFE, 0xED, 0xBE, 0xEF, 0xDE, 0xAD }; /* My IP. Should be modified accordingly */ byte ip[] = { 10, 1, 1, 10 }; /* My gateway to Internet */ byte gateway[] = { 10, 1, 1, 1 }; /* GoodRobot server */ byte server[] = {174, 129, 245, 223 }; // byte server[] = {10, 1, 1, 1 }; /* Specify the robot/component name here correctly */ /* PROGMEM added to place these strings in flash memory and leave more RAM empty */ char putString[] PROGMEM = "PUT /api/testing.resource.csv HTTP/1.1\r\n"; char hostString[] PROGMEM = "Host: www.goodrobot.com\r\n"; char secret_key[] PROGMEM = "X-GoodRobotKey: LM2SDT3IJJVU2JZXQ1EVOTYWZ8MMIDIZHM3762UQ\r\n"; char putString2[] PROGMEM = "PUT /api/walking.resource.csv HTTP/1.1\r\n"; char secret_key2[] PROGMEM = "X-GoodRobotKey: WMDSP0PWBCZ5CE26X7Y46E3NOR2LO80YP0NS3TLP\r\n"; void config() { /* Pre-Configure Pins for usage and for reset * Read arduino_ethernet.pde for help * These are just examples! cfg_pins[3] = 'p'; // Pin 3 is set for PWM mode cfg_pins[4] = 'i'; // Pin 4 is set for digital Input mode cfg_pins[5] = 'o'; // Pin 5 is set for digital Output mode cfg_apins[2] = 'a'; // Pin 2 analog mode reset_pins[3] = 'p'; // Pin 3, PWM mode, should be reset to 0 reset_pins[4] = 'o'; // Pin 4, digitalOut mode, should be reset to LOW reset_pins[5] = 't'; // Pin 5, PWM mode/Tank drive, should be reset to 127 reset_pins[6] = 's'; // Pin 6, Servo mode, should be reset to 0 cfg2_pins[10] = 'p'; // Pin 10, PWM mode, sent as component 2 */ }