GPIO as trigger source for wake-up sleep mode,When the wake-up event is triggered, get the pin number is 0.
Posted: Fri Oct 12, 2018 2:38 am
In deep sleep mode,Wake up device by triggering IO:
const uint64_t ext_wakeup_pin_mask = (1ULL << 33);
esp_sleep_enable_ext1_wakeup(ext_wakeup_pin_mask, ESP_EXT1_WAKEUP_ALL_LOW);
esp_deep_sleep_start();
i can get evnets ESP_SLEEP_WAKEUP_EXT1,but Call function esp_sleep_get_ext1_wakeup_status(),return 0;
Use high level trigger to get IO number normally.
const uint64_t ext_wakeup_pin_mask = (1ULL << 33);
esp_sleep_enable_ext1_wakeup(ext_wakeup_pin_mask, ESP_EXT1_WAKEUP_ALL_LOW);
esp_deep_sleep_start();
i can get evnets ESP_SLEEP_WAKEUP_EXT1,but Call function esp_sleep_get_ext1_wakeup_status(),return 0;
Use high level trigger to get IO number normally.