Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 24, 2020 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d5bf27c63c562fa6b5bfa9b7ae0eca96 to your computer and use it in GitHub Desktop.
Save parzibyte/d5bf27c63c562fa6b5bfa9b7ae0eca96 to your computer and use it in GitHub Desktop.
<?php
if (!isset($_GET["temperature"]) || !isset($_GET["humidity"])) {
exit("temperature and humidity are required");
}
$temperature = $_GET["temperature"];
$humidity = $_GET["humidity"];
include_once "functions.php";
saveDhtData($temperature, $humidity);
exit("ok");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment