Instructions
" " ! "
Espressif Systems
ESP8266
AT Instruction Set
11.
AT+WAKEUPGPIO – set a GPIO to wake ESP8266 up from light-sleep mode
This command sets a GPIO to wake the ESP8266 up from light-sleep mode. Please note that the
<trigger_GPIO> and the <awake_GPIO> in the command cannot use the same GPIO.!
After being waken up by <trigger_GPIO>, when the ESP8266 attempts to sleep again, it will check the
status of the <trigger_GPIO>:!
•
if it is still in the wakeup status, the EP8266 will enter modem-sleep mode instead.!
•
if it is NOT in the wakeup status, the ESP8266 will enter light-sleep mode.!
AT+WAKEUPGPIO – set a GPIO to wake ESP8266 up from light-sleep mode
Example
ESP8266 will be wakened from light-sleep, when the GPIO0 is in low-level.
AT+WAKEUPGPIO=1,0,0
ESP8266 will be wakened from light-sleep, when the GPIO0 is in high-level.
And after waking up, the GPIO13 will be set to high-level.
AT+WAKEUPGPIO=1,0,1,13,1
Disable the function that ESP8266 can be woken up from light-sleep by GPIO.
AT+WAKEUPGPIO=0
Command
AT+WAKEUPGPIO=<enable>,<trigger_GPIO>,<trigger_level>,
[<awake_GPIO>,<awake_level>]
Response
OK
Parameters
<enable>
0 : ESP8266 can NOT be woken up from light-sleep by GPIO
1 : ESP8266 can be woken up from light-sleep by GPIO
<trigger_GPIO>
set a GPIO to wake ESP8266 up, range: [0, 15]
<trigger_level>
0 : low-level to trigger the wakeup process
1 : high-level to trigger the wakeup process
[<awake_GPIO>], optional
set a GPIO as a flag of awakening
[<awake_level>], optional
0 : to be low-level after wakeup
1 : to be high-level after wakeup
Espressif Systems / Friday, July 15, 201618 73