Bolt does not work with led

bolt is connected with device green and blue LED stable
I had tried everything but led is not get working
Different LED also tried
Different GPIO pins also tried
Different code also tried
but LED is not get glow

1 Like

Hi @vaibhavlanghe25,

As per my understanding, you are facing an issue in the 1st project of controlling devices over the internet. Am I correct?

Most people face an issue with the project for 4 reasons.

  1. The device not online. ( Not the case for you)
  2. The circuit is not properly connected (Possible for you)
  3. The code is not correctly written (Possible for you)
  4. The API key gets rate-limited (possible for you)

Could you do the following?

  1. Share a photo of your circuit connections.
  2. Share the code that you have written in your product code.

CODE:

<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="digitalWrite(pin0, 'HIGH');">ON</button>

    <button onclick="digitalWrite(pin0, 'LOW');">OFF</button>

    </center>

</body>
PHOTO: ![IMG_20190906_194147|375x500](upload://5Y0B0NXWYr5pANgNHDwl4p2SbHE.jpeg)

I had also tried Light intensity monitoring system it is working but LED is not working

same case with me also

We have not received the photo of the circuit connections. Can you share those as well?

@vaibhavlanghe25
There is a typo in your code.
Please use digitalWrite(0,‘HIGH’) instead of digitalWrite(pin0, ‘HIGH’). Likewise for Low button.