kus kódu výše uvedeného příkladu
Kód: Vybrat vše
....
.....
.....
String url = "/update?key="; // Vytvoření URL pro odeslání informace o teplotě
url += APIkey;
url += "&field1=";
url += charVal;
Serial.print("Requesting URL: ");
Serial.println(url);
// Odeslání požadavku na server
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Connection: close\r\n\r\n");
...
...
************************************************************************************************
String url1="http://mujhosting.cz/somepage.php?";
url1 += charVal;
client.print(String("GET") + url1);
*************************************************************************************************
.....
......
......
Kód: Vybrat vše
$username = $_GET['username']; //make sure you filter these values, before showing them
$sez = $username;
$relace = fopen("./IP/zap.txt", "r+"); // Otevřeme soubor
fwrite($relace,$sez ); // Zapíšeme text do souboru
fclose($relace);
?>
poz.
hvězdičkami je označeno je to co by tam bylo přidáno