get_pin

Get current state of a Digital I/O pin

Parameters

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