ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
example_lowpower.cpp
Go to the documentation of this file.
1
11#include <Arduino.h>
12#include <ArduinoLog.h>
13
14void setup() {
15 // setup serial
16 Serial.begin(115200);
17
18 Log.begin(LOG_LEVEL_NOTICE, &Serial);
19
20 Log.noticeln("ents-node esp32 firmware, compiled at %s %s", __DATE__,
21 __TIME__);
22 Log.noticeln("Git SHA: %s", GIT_REV);
23
24 // Enter deep sleep state
25 Log.noticeln("Entering deep sleep mode in 5 seconds");
26
27 delay(5000);
28
29 Log.noticeln("Entering deep sleep mode!");
30
31 esp_deep_sleep_start();
32}
33
34void loop() {}
void setup()
void loop()