LED controller using javascript. The following code is notworking. When I click on button nothing happens

<!doctype html>

BOLT

LED Controller


ON OFF
 
 
 
BOLT 
 
 
 
 

LED Controller


ON OFF

Hi, are you trying to control over cloud or locally?

Also make sure LED connections are correct. i.e. +ve Leg of LED in Pin4 and -ve Leg of LED in GND.

I am also having the same problem and have made the correct connections. On loading the webpage of my bolt, I open console to find the error(Failed to load resource: the server responded with a status of 404 (Not Found))

can you send a screenshot of the URL you are trying to access as well as a screenshot of your code for verification

@ankit.negi1525,
Please open console log in chrome and see if any error or warning message is there.
Also, check if your are typing the correct file name for bolt file.
<script type="text/javascript" src="/serveFile?filename=bolt.js"> setDebug(true); </script>

Ok, So now I have got it working as I manually added bolt.js file to sdcard which can be found at


Upload this bolt.js file to your bolt and then the program will work.
2 Likes