@rahul.singh1
<html>
<head>
<title>Bolt IoT Platform</title>
<script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
<script>
setKey('{{ApiKey}}','{{Name}}');
</script>
</head>
<body>
<center>
<button onclick="setInterval(function(){led_off(), led_on()}, 30000)">ON</button>
<button onclick="digitalWrite(1, 'LOW');">OFF</button>
</center>
<script>
function led_on()
{
digitalWrite('1', 'HIGH');
}
function led_off()
{
digitalWrite('1', 'LOW');
}
</script>
</body>
</html>