I created a static site for my IOT Devices that are connected on my home WiFi and I can control them via localhosted website.
But it hasn't been running since I deployed the site to a Live Server.
So, is there any way to send commands to my home WiFi through a deployed site?
//passing commands through link
function lightOn(){
location.href = "http://192.168.0.104/on";
}
function lightOff(){
location.href = "http://192.168.0.104/off";
}
<button onclick="lightOn()">Light On</button>
<button onclick="lightOff()">Light Off</button>
Aucun commentaire:
Enregistrer un commentaire