Hello,
I am trying to do a project that is accessible from the internet.
I have arduino uno and a cc3000 wifi shield from adafruit:
I have successfully connected to wifi shield and run the examples but what I want to do is similar to this code:
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println("Connection: close"); // the connection will be closed after completion of the response
client.println("Refresh: 5"); // refresh the page automatically every 5 sec
client.println();
client.println("");
client.println("");
// output the value of each analog input pin
for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
int sensorReading = analogRead(analogChannel);
client.print("analog input ");
client.print(analogChannel);
client.print(" is ");
client.print(sensorReading);
client.println("
");
}
client.println("");
break;
so when someone enters from a browser the ip address of my wifi shield can see an HTML page with sensor data, etc.
but so far I didn't succeed to do something similar
the above code is taken from:
Please help
Daniel