Hi every one ,
I have a problem to execute an url for my project :
here is my code
if(readString.indexOf("?dooron") >0)//checks for on
{
digitalWrite(6, HIGH); // set pin 4 high
Serial.println("vent On");
client.println("<html><head>");
client.println("<meta http-equiv=REFRESH content=0;url='myserver.url/dooron.php'>"); // !!!!!!!! it's not correct
client.println("</head></html>");
}
the file dooron.php will change the state of the door in my database because when i open the file from the server the state changes in database but not through arduino
What's the correct code pls
Think you
I have no idea what you want the sketch to do, or what it actually does. Is the code snippet you posted actually being executed when it is supposed to be?
That doesn't help much. Is the Arduino a web server, or a web client, or both? What is it that you're trying to achieve? All I can see there is a code snippet that looks as if it might be part of a web server, which appears to be trying to send clients off to some other web server. I can't guess what that is intended to achieve and you haven't said what it actually does. Please start again, assuming we know nothing at all about your project, and explain what you are trying to achieve, what you want the Arduino to do and what it actually does.