My LED is not blinking, here is my code.
Bolt IoT Platform ON OFFCan you please share your code
@2020.shruti.dalvi here is my code.
<!DOCTYPE html>
<html>
<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(0, 'HIGH');">ON</button>
<button onclick="digitalwrite(0, 'LOW');">OFF</button>
</center>
</body>
</html>
Hello @sknabar13 ,
The syntax for digitalWrite function is digitalWrite(pin, value) and in your code you have typed ‘W’ in lower case
1 Like
Please check the connections once again and please connect hard ware components correctly and strongly with out loose connections and then check the led.
here it is a TypeError it needs to be digitalWrite and also it is better to connect led to pins other than 0 because if led is connected to pin 0 while uploading code it causes error
either upload code and connect or change the pin you want to use