boltCommand.js - All functions explained - w/ Syntax and HTML samples 🦾

As a reference, I have attached a sample of the HTML script below you can use directly on the Bolt Cloud using the above-mentioned functions to build elements to control your Bolt Module.


<!doctype html>
<html>
<head>
    <title>Control Pin 0 of Bolt Module</title>
    <script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
    <script>
        setKey('{{ApiKey}}','{{Name}}');
    </script>
</head>
<body bgcolor="#c7f0d9">
    <center>
        <button id="on" onclick="digitalWrite(0,'HIGH');">ON</button>
        <button id="off" onclick="digitalWrite(0,'LOW');">OFF</button>
    </center>
</body>
</html>

You can use the above HTML script on your Website as well as Bolt Cloud.

Also, have a look at 💻 Snippet Challenge is LIVE!

This event is MAJORLY related to the functions I have mentioned. Do bookmark and put a reminder on the posts to be updated on the event as well as a guide for making your submissions.