When posting code on the forum please embed it Preformatted text option or share a screeshot of the code so we can help debug it better.
Please check if bolt.js file is present in bolt SD card.
If the bolt.js file is missing then download it from https://github.com/Inventrom/bolt-sdcard-files and copy it to SD card.
Bolt.js is on the sd card.Code is also correct.Moreover the connection is fast and strong.Still led is not turning on and off.
Please do console log in chrome and see if there is any error or warning message is there.
Also first try control the led using the direct command using below sytax -
Go to Chrome menu and click on
Also, do a view source in chrome. Right, Clikc on the page -> View Source -> search for bolt.js and click on the link and see if you are able to see the bolt.js code.
Also share your HTML code here. Copy your code in the box and select the code part and click on
</> icon from formatting menu.
bolt.js is present on sd card but not in console log.I downloaded it and uploaded it into the sd card.
There was problem in bolt.js file.Thanks for support.
Please post your solution here.
I just copied the contents of bolt.js file into a text document and saved it as bolt.js and uploaded it.Now the code works