esp_sleep_enable_ext0_wakeup(gpio, state);