Get/Set pin value
Input
[ESP201]P=<pin> V=<value> <json=YES/NO> <PULLUP=YES> <RAW=YES> <ANALOG=NO> <ANALOG_RANGE=255> pwd=<admin password> Range can be 255 / 1024 / 2047 / 4095 / 8191
-
json=no the output format can be in JSON or plain text
-
pwd=
the admin password if authentication is enabled -
P
- if P is not empty, it will use the pin value
-
V
- if V is empty, it will display current pin value
- if V is not empty, it will set the pin value
-
RAW
- if RAW is present, it will set the pin mode
-
PULLUP
- if PULLUP is present, it will set the pullup pin mode
-
ANALOG
- if ANALOG is present, it will set the pin ANALOG
-
ANALOG_RANGE
- if ANALOG_RANGE is not empty, it will set the ANALOG_RANGE
Output
- In json format
cmd
Id of requested command, should be201
status
status of command, should beok
data
content of response, here the pin value is 1 or High