get_pin
Get current state of a Digital I/O pinParameters
integer required
Target pin to get the state
allowed values:1 to 16
# Available states for a pin are:
State | Description |
---|---|
I | Input |
O | Output |
H | High, pin is set to 1 |
L | Low, pin is set to 0 |
X | Off, Pin is off |
# Examples
# Sample response
{
"state": "H"
}
1
2
3
2
3