Thank you ShapeShifter! That cleared some of the fog in my brain. But still not getting data from the board.
Here's the sketch named "temperature"...
#include <Bridge.h>
#include <YunServer.h>
#include <YunClient.h>
YunServer server;
void setup() {
// put your setup code here, to run once:
Bridge.begin();
server.listenOnLocalhost();
server.begin();
}
void loop() {
// put your main code here, to run repeatedly:
YunClient client = server.accept();
if (client) {
String command = client.readString();
Console.println(command);
command.trim();
if (command == "temperature") {
int val = analogRead(A1);
client.print(val);
Console.println(val);
}
client.stop();
}
delay(50);
//Toggle pin 13 LED
if(digitalRead(13)==HIGH)
{
digitalWrite(13, LOW);
}
else
{
digitalWrite(13, HIGH);
}
}
Here's index.html...
OmanYun/Arduino/www - waiting for board...
The "REST API ACCESS" "OPEN" radio box is selected...
The SD's /android/www directory contains the following files:
index.html
zepto.min.js
zepto.js
The zepto files were downloaded from:
http://zeptojs.com/zepto.min.js and http://zeptojs.com/zepto.js respectively, was cut/copied from the browser and pasted into Notepad and saved to the SD's android/www directory.
When the board is powered up, the LED13 begins to blink, erratically for maybe 15 seconds or so, and then at the programmed rate (at about the same time the white WLAN LED comes on).
Entering the URL in a browser:
http://172.16.0.41/sd/index.html
Returns the page
"OmanYun/Arduino/www - waiting for board..."
So, obviously arduino, Yun and the webserver are running...
But nothing else follows...????
Any ideas???
Thanks!