77 Log.begin(LOG_LEVEL_NOTICE, &Serial);
79 Log.noticeln(
"ents-node esp32 firmware, compiled at %s %s", __DATE__,
81 Log.noticeln(
"Git SHA: %s", GIT_REV);
82 Log.noticeln(
"Boot number: %d",
bootCount);
86 const gpio_num_t wakeup_pin = GPIO_NUM_3;
87 const gpio_config_t config = {
88 .pin_bit_mask = BIT(GPIO_NUM_3),
89 .mode = GPIO_MODE_INPUT,
90 .pull_up_en = GPIO_PULLUP_DISABLE,
91 .pull_down_en = GPIO_PULLDOWN_DISABLE,
94 esp_deep_sleep_enable_gpio_wakeup(BIT(wakeup_pin), ESP_GPIO_WAKEUP_GPIO_HIGH);
96 Log.noticeln(
"Entering deep sleep mode!");
98 esp_deep_sleep_start();