Need a "Push button" syntax to put in HTML program

@chaudharysuyashsriva

You can use digitalRead function and call it every 2- 3 seconds using

setInterval(function(){ 
   digitalRead(pin,element_id);
}, 3000);

Inside digitalRead, make changes. So that when obj.value = “1”, you can run

window.open(url,'_blank'); //url is the webpage link

You’ll find the function over here https://cloud.boltiot.com/static/js/boltCommands.js

If you’re not familiar with javascript, then you need to start with basic programs and functions to get a grip. For that you can take help of this thread boltCommand.js - All functions explained - w/ Syntax and HTML samples 🦾