View Single Post
  #8   Spotlight this post!  
Unread 01-08-2013, 19:37
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

Quote:
Originally Posted by techhelpbb View Post
Somewhere you've lost a line...I highlighted it red.
The line you want to add is shown in green.

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!")
              }
            }
Also I noticed you statically assigned the pin I think it best you start with the original unmodified code for this.
Just add the one green line to the original code.

Be back in 2 or so hours....gotta go to a MORT thing.....
Yeah, my bad. I modified the code either yesterday or the day before. I just hardcoded it so that it would digital write on pin 8 no matter what, so that if that was the problem.

Will do, and will post results.
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.