At+Wakeupgpio - Set A Gpio To Wake Esp8266 Up From Light-Sleep Mode - Espressif Systems ESP8266 At Instruction Set

Hide thumbs Also See for ESP8266:
Table of Contents

Advertisement

Espressif Systems
"
"
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
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.
Example
AT+WAKEUPGPIO=1,0,1,13,1
Disable the function that ESP8266 can be woken up from light-sleep by GPIO.
AT+WAKEUPGPIO=0
AT+WAKEUPGPIO=<enable>,<trigger_GPIO>,<trigger_level>,
Command
[<awake_GPIO>,<awake_level>]
Response
OK
<enable>
<trigger_GPIO>
<trigger_level>
Parameters
[<awake_GPIO>], optional
[<awake_level>], optional
Espressif Systems
"
0 : ESP8266 can NOT be woken up from light-sleep by GPIO
1 : ESP8266 can be woken up from light-sleep by GPIO
set a GPIO to wake ESP8266 up, range: [0, 15]
0 : low-level to trigger the wakeup process
1 : high-level to trigger the wakeup process
set a GPIO as a flag of awakening
0 : to be low-level after wakeup
1 : to be high-level after wakeup
18 73
/
ESP8266
AT Instruction Set
Friday, July 15, 2016

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP8266 and is the answer not in the manual?

Questions and answers

Table of Contents