This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#include <VL53L0X.h> | |
#include <WiFi.h> | |
#include <HTTPClient.h> | |
const char* ssid = "YourWiFiSSID"; | |
const char* password = "YourWiFiPassword"; | |
const char* serverAddress = "http://yourserver.com/store_data.php"; | |
VL53L0X sensor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Water Tank Level Monitoring</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
// Function to fetch water level data | |
function fetchWaterLevel() { | |
$.ajax({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "your_username"; | |
$password = "your_password"; | |
$dbname = "your_database"; | |
// Create connection | |
$conn = new mysqli($servername, $username, $password, $dbname); | |
// Check connection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "your_username"; | |
$password = "your_password"; | |
$dbname = "your_database"; | |
// Create connection | |
$conn = new mysqli($servername, $username, $password, $dbname); | |
// Check connection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
const int servoPin = 16; /* GPIO16 */ | |
const char* ssid = "ESP32-WiFi"; /* Add your router's SSID */ | |
const char* password = "12345678"; /*Add the password */ | |
int dutyCycle = 0; | |
//int position1 = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://rpc.pingomatic.com/ | |
http://rpc.weblogs.com/RPC2 | |
http://rpc.blogbuzzmachine.com/RPC2 | |
http://rpc.aitellu.com | |
http://rpc.bloggerei.de/ping/ | |
http://rpc.reader.livedoor.com/ping | |
http://rpc.twingly.com/ | |
http://ping.feedburner.com | |
http://ping.bloggers.jp/rpc/ | |
http://ping.myblog.jp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int LED13 = 13; | |
int LED12 = 12; | |
int LED11 = 11; | |
int LED10 = 10; | |
int LED9 = 9; | |
int LED8 = 8; | |
int LED7 = 7; | |
int LED6 = 6; | |
int LED5 = 5; | |
int LED4 = 4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "non-root"; | |
$password = "non-root-password"; | |
$conn = new mysqli($servername, $username, $password, $dbname); | |
if ($conn->connect_error){ | |
die("Connection failed: " . $conn->connect_error); | |
} | |
$sql = "INSERT INTO LED_status (id, status) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "non-root"; | |
$password = "non-root-password"; | |
$dbname = "ESP32IoT"; | |
$conn = new mysqli($servername, $username, $password, $dbname); | |
if ($conn->connect_error) { | |
die("Connection failed: " . $conn->connect_error); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "non-root"; | |
$password = "non-root-password"; | |
$conn = new mysqli($servername, $username, $password); | |
if ($conn->connect_error) { | |
die("Connection failed: " . $conn->connect_error); | |
} | |
NewerOlder