Data Sheet

!
3. Basic AT Commands
3.2.17. AT+SYSIOSETCFG—Configures IO Working Mode
3.2.18. AT+SYSIOGETCFG—Checks the Working Modes of IO Pins
3.2.19. AT+SYSGPIODIR—Configures the Direction of a GPIO
Set Command
AT+SYSIOSETCFG=<pin>,<mode>,<pull-up>
Response
OK
Parameter
<pin>: number of an IO pin
<mode>: the working mode of the IO pin
<pull-up>
0: disable the pull-up
1: enable the pull-up of the IO pin
Note
Please refer to ESP8266 Pin List for uses of AT+SYSIO-related commands.
Example
AT+SYSIOSETCFG=12,3,1󰐇󰐇//Set󰐇GPIO12󰐇to󰐇work󰐇as󰐇a󰐇GPIO
Set Command
AT+SYSIOGETCFG=<pin>
Response
+SYSIOGETCFG:<pin>,<mode>,<pull-up>
OK
Parameter
<pin>: number of an IO pin
<mode>: the working mode of the IO pin
<pull-up>
0: disable the pull-up
1: enable the pull-up of the IO pin
Note
Please refer to ESP8266 Pin List for uses of AT+SYSIO-related commands.
Set Command
AT+SYSGPIODIR=<pin>,<dir>
Response
If the configuration is successful, the command will return:
OK
If the IO pin is not in GPIO mode, the command will return:
NOT󰐇GPIO󰐇MODE!
ERROR
Parameter
<pin>: GPIO pin number
<dir>:
0: sets the GPIO as an input
1: sets the GPIO as an output
Note
Please refer to ESP8266 Pin List for uses of AT+SYSGPIO-related commands.
Espressif
! /5816
2017.05