sleep for 10 seconds after sending one image

pico-fc-test
alanbjohnston 3 years ago committed by GitHub
parent cb76116c33
commit c88dc8b5a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -218,6 +218,12 @@ void loop() {
send_image_serial(filename);
delay(500);
esp_sleep_enable_timer_wakeup(10 * 1000000); // sleep for 10 seconds
Serial.println("Going to sleep now");
Serial.flush();
esp_deep_sleep_start();
}
/**

Loading…
Cancel
Save

Powered by TurnKey Linux.