Skip to content

Commit

Permalink
Merge pull request #30 from groundlight/display-firmware-name
Browse files Browse the repository at this point in the history
display firmware config and build date in serial debug output
  • Loading branch information
positavi authored Dec 17, 2023
2 parents 8836fe4 + df5de4b commit 6f8c79b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/deployable_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ void setup() {

Serial.begin(115200);
Serial.println("Groundlight ESP32CAM waking up...");



if (esp_sleep_get_wakeup_cause() == ESP_SLEEP_WAKEUP_TIMER) {
Serial.println("Wakeup from deep sleep. forcing restart to properly reset wifi module");
ESP.restart();
Expand All @@ -389,8 +390,9 @@ void setup() {
esp_chip_info_t chip_info;
esp_chip_info(&chip_info);
debug_printf("ESP32 Chip Revision %d\n", chip_info.revision);
debug_printf("WiFi MAC Address: %s\n", WiFi.macAddress().c_str());

debug_printf("WiFi MAC Address: %s\n", WiFi.macAddress().c_str());

debug_printf("Firmware : %s built on %s at %s\n", NAME, __DATE__, __TIME__);

xTaskCreate(
listener, // Function that should be called
Expand Down Expand Up @@ -1113,6 +1115,9 @@ bool shouldDoNotification(String queryRes) {
preferences.end();
return res;
}
else {
return false;
}
}
bool sendNotifications(char *label, camera_fb_t *fb) {
preferences.begin("config");
Expand Down

0 comments on commit 6f8c79b

Please sign in to comment.