Bolt iot and cloud

i need ‘’‘a href…’’’ code of controlling led through bolt device from cloud

give the working code please, not ideas

Hi,

In the following link you will get both the tutorials as well as the code

https://boltiotworkshop.appspot.com/bolt_iot/unit?unit=17&lesson=21

Hi
Follow this step to control through the cloud.

As you can see in the test_bulb.html file, pin number is 0.

<button onclick="digitalWrite(0, HIGH); changeImage();" style="height:50px;width:75px">ON</button>
  <img id="myImage" src="http://www.clker.com/cliparts/0/X/y/m/X/2/grey-led-off-hi.png" height="200" width="200">
  <button onclick="digitalWrite(0, LOW); changeImage();" style="height:50px;width:75px">OFF</button>

P

Let me know in case you need further assitance.

its just changing image on click of button on/off, but no connection to bolt as no led glow on/off

Hi @12letsdo
Please check if your device is getting internet access.
check if your device is alive or not using bolt cloud account.
Use your API key and device id to check the status of bolt device.

Syntax : http://cloud.boltiot.com/remote/<api_key>/isAlive?&deviceName=<device_id>
For example :   http://cloud.boltiot.com/remote/87fcca47-a888-4f8d-8302-6f8b22c34813/isAlive?&deviceName=BOLT8795377

In above URL replace your API key with your API key and device id with your device id and after that type the in URL in the browser.