Advertisement
Guest User

Untitled

a guest
May 25th, 2021
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. void cekej(int t) {
  2. unsigned long pm = millis();
  3. while (millis() - pm <= t)
  4. {
  5. hodiny();
  6. den_tydnu();
  7. teplota_vlhkost();
  8. tlak();
  9. Serial.println("_________________________");
  10. delay(10000);
  11. }
  12. }
  13.  
  14. void odesli() {
  15. if(client.connect(server, 80)){
  16. client.print("GET http://sdfsdfsdf/logger_venku.php?teplota=");
  17. client.print(tep,0);
  18. client.print("&vlhkost=");
  19. client.print(vlh,0);
  20. client.print("&tlak=");
  21. client.println(tlak_aktualni,0);
  22. client.println("Host: sdfsdfsdf");
  23. client.println("Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
  24. client.println("Connection: close");
  25. client.println();
  26. client.stop();
  27. Serial.println("odeslano");
  28. Serial.println("_________________________");
  29. cekej(600000);
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement