Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void cekej(int t) {
- unsigned long pm = millis();
- while (millis() - pm <= t)
- {
- hodiny();
- den_tydnu();
- teplota_vlhkost();
- tlak();
- Serial.println("_________________________");
- delay(10000);
- }
- }
- void odesli() {
- if(client.connect(server, 80)){
- client.print("GET http://sdfsdfsdf/logger_venku.php?teplota=");
- client.print(tep,0);
- client.print("&vlhkost=");
- client.print(vlh,0);
- client.print("&tlak=");
- client.println(tlak_aktualni,0);
- client.println("Host: sdfsdfsdf");
- client.println("Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
- client.println("Connection: close");
- client.println();
- client.stop();
- Serial.println("odeslano");
- Serial.println("_________________________");
- cekej(600000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement