Bolt IoT: A fully integrated IoT Platform

The Bolt IoT Developer Hub

Welcome to the Bolt IoT developer hub. You'll find comprehensive guides and documentation to help you start working with Bolt IoT as quickly as possible, as well as support if you get stuck. Let's jump right in!

Guides    Guides

Write Digital Output

Command : digitalWrite
Parameters :

  • pin: It is the Bolt GPIO you want to control. It can take any of the following values 0, 1, 2, 3, 4.
  • state: It is the output voltage to be provided on the GPIO. It can take value HIGH(3.3V) or LOW(0V).
  • deviceName: The name of the Bolt device you want to control.

Example:
https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/digitalWrite?pin=0&state=HIGH&deviceName=BOLT13819450

  • this command will give 3.3 volts on pin 0
  • browser output: {"success": "1", "value": "1"}

https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/digitalWrite?pin=0&state=LOW&deviceName=BOLT13819450

  • this command will give 0 volts on pin 0
  • browser output: {"success": "1", "value": "1"}

Command : digitalMultiWrite
Parameters :

  • pins: This is a CSV list of Bolt GPIO pins you want to control.
  • states: This is a CSV list, of states that you want the corresponding GPIO pins to be set to.
  • deviceName: The name of the Bolt device you want to control.

Example:
https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/digitalMultiWrite?pins=4,1,2&states=HIGH,LOW,HIGH&deviceName=BOLT13819450

  • this command will give 3.3 volts on the GPIO pins 4 and 2, and 0 volts on pin 1.
  • browser output: {"success": "1", "value": "1"}

https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/digitalMultiWrite?pins=2,1,3,4&states=LOW,HIGH,HIGH,LOW&deviceName=BOLT13819450

  • This command will give 3.3 volts on GPIO pins 1 and 3, and 0 volts on gpio pins 2 and 4
  • browser output: {"success": "1", "value": "1"}

Write Digital Output


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.