Read Digital Input
Command : digitalRead
Parameters
- pin: It is the Bolt GPIO you want to control. It can take any of the following values 0, 1, 2, 3, 4.
- deviceName: The name of the Bolt device you want to control.
Example: - https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/digitalRead?pin=0&deviceName=BOLT13819450
- {"success": "1", "value": "1"} or
- {"success": "1", "value": "0"}
Command : digitalMultiRead
Parameters
- pins: This is a CSV list of Bolt GPIO pins you want to control.
- deviceName: The name of the Bolt device you want to control.
Example: - https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/digitalMultiRead?pins=1,2,3&deviceName=BOLT13819450
- {"success": "1", "value": "1,1,1"}, if the states of pins 1, 2 and 3 are HIGH, HIGH and HIGH.
- {"success": "1", "value": "0,1,0"}, if the states of pins 1, 2 and 3 are LOW, HIGH and LOW.
Updated almost 5 years ago