Led not working

1 Like

make sure you follow the order instructed in the training exactly and it will work.

Make sure you write the code and make the connections and then link your product to your device.

Hi @sonivinay94,

There is a typo in you code. The url for boltCommand.js is

https://cloud.boltiot.com/static/js/boltCommands.js 

But you have used boltcommands.js

Do let me know in case you need any other information.

4 Likes

This happened to me as well. What I have done is:

  1. Unlink your project via clicking on unlink symbol.
  2. Create a new product & name it.
  3. Now connect your bolt module to the bolt cloud & then link your product with the device.
  4. Click on the configuration button & go to the code window.
  5. Copy the code given in the training section & save it.
  6. Click on view my device & to make the led glow click button “ON” & to switch it off click
    “OFF”.

If this can’t resolve your problem then you must try to change the led with the one provided in the bolt kit.

Hi @sonivinay94 make sure while creating the product you select ‘Output devices’ and ‘GPIO’.
As @rahul.singh1 suggested change ‘boltcommands.js’ to ‘boltCommands.js’.
Also in the 6th line there’s another typo. Change ‘setkey’ to ,setKey’. These are somethings due to which LED might not work. Also make sure your API key is enabled. Let me know if it’s working or not.

1 Like

Hi @sonivinay94,

I too faced this problem and since like this happened, I found out that mistake and rectified it.
Use the link below

https://cloud.boltiot.com/static/js/boltCommands.js 

instead of boltcommands.js

On problem occured . When I click on deploy configuration then it show no hardware exist

yes because you havent initialize any variable yo any pin but that is not required here…Click on Vew device button…it will show the output…no need to deploy here.

Bro, check with api key,I think that’s the problem.
And link bolt module with it ,if not linked

firstly, check the codes for any errors
second, try to connect the led to battery and check if it is working
try to replace the led with a new one.
cheers :slight_smile:

I have a very good explanation for this issue as it happed with me as well but i figured the way out. This happens as you have exceeded the rate limit of api bandwidth provided to normal bolt cloud users like me and you. That is why, it is not glowing. The solution to it is:

  1. Right-click on the html page with you buttons.
  2. Click on inspect.
  3. Go to the console.
  4. There you would see an error named - "Failed to load resourse: the server responded with a status of 429(TOO MANY REQUESTS) "
  5. Just on the right of this error, there would be a like lokking something like this:
    image
  6. Click on it and it will take you to a page which will show for how much time have you been rate limited. If you refresh the page, the countdown updates.
  7. Do not do anything for that time period.
  8. Once that countdown is over, try closing the page and click on view the device again. This time your buttons would work.
    Here is the doc for rate limited incase you need it:
    https://docs.boltiot.com/docs/api-access-rules

I hope this issue was solved and you understtod the reason why it happened. PLease do let me know. Thanks!!