Example/bridge.ino not working

I have had some success with my Yun. I can send data to a Google docs spreadsheet. But I can not get data to go the other way.

There are lots of tutorials and the example bridge.ino that all seem to work the same way to turn a LED on and off by entering a URL in a browser. But I can't get it do do anything.

I can ping my Yun 192.168.1.6 by Ethernet or 192.168.1.7 by WiFi flawlessly.

If I send something bogus like 192.168.1.7/foobar/mode/8/OUTPUT the browser shows the error "No such File or directory" so something is trying to interpret the command and correctly failing.

I can run blink.ino on pin 8 so I know my I/O pin, LED, and resistor are OK.

But sending 192.168.1.7/arduino/mode/8/OUTPUT or 192.168.1.7/arduino/digital/8/1 or 192.168.1.7/arduino/digital/8/0 give no browser response and no voltage shift on pin 8. It is like the command is accepted but not executed.

I have also tried other digital pins.

What am I doing wrong?

In this modified version of bridge.ino “loop” prints repeatedly but “client” never prints. The variable “client” is always 0.

void loop() {
// Get clients coming from server
YunClient client = server.accept();
Serial.println(“loop”);
// There is a new client?
if (client) {
Serial.println(“client”);
// Process request
process(client);

// Close connection and free resources.
client.stop();
}

delay(50); // Poll every 50ms
}

What version of the IDE are you using?

I am using version 1.6.4.

@SherpaDoug, can you post your complete code that is NOT working? Not the section, but the whole sketch. TIA Jesse