Get/Set pin value
[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=(admin password) 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
Section titled “Output”- In json format
{ "cmd":"201", "status":"ok", "data":"1"}cmdId of requested command, should be201statusstatus of command, should beokdatacontent of response, here the pin value is 1 or High