Send your code here and image of your led to Bolt connection. Also change the led and check if it working.
You are using
isOnline() that is used in getting the status of the device.
- Insert the negative leg(smaller) of the LED into the ground pin of the Bolt.
- Insert the positive pin(longer) of led to GPIO pins (0,1,2,3,4) of Bolt
- Pass the used pin in your digitalWrite function.
To switch on/off led using the digitalWrite function.
Refer the code below.
from boltiot import Bolt api_key = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" device_id = “BOLT1234" mybolt = Bolt(api_key, device_id) response = mybolt.digitalWrite('0', 'HIGH')
@mohamedabdulkadher.1 You have connected the LED to pin 0 of the Bolt, but the command to turn on the LED is sent to the pin 1.
Please change the code to send the command to pin 0.
You will need to change the first parameter in the digitalWrite() function.
I think your led is faulty. Can you connect the buzzer to the bolt and run the same code and check if it working. Put the smaller pin of the buzzer to GND and longer pin to 0 of Bolt.
Thanks for your help i get a output in buzzer.