View Single Post
  #4   Spotlight this post!  
Unread 06-08-2013, 14:41
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

Sorry it took so long, I've been too busy to toy with this issue.

I added the Serial.print function where you indicated
Code:
(if(strcmp(buffer,"POST ") == 0)
            {
              client.find("\n\r");
              while(client.findUntil("PinD", "\n\r"))
              {
                int pin = client.parseInt();
                int val = client.parseInt();
                pinMode(pin, OUTPUT);
                digitalWrite(pin, val);
                Serial.println("I saw the POST and toggled the pin!")
              }
            }
It does not print "I saw the POST and toggled the pin!", it still prints the HTTP and favicon.i

Except it added one character;
Code:
 HTTP
favicon.i¨
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.