Skip to content

Commit

Permalink
Init timezone on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbles07 committed Dec 5, 2024
1 parent 6186e3e commit 424d1d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/OneOpenAir/OneOpenAir.ino
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ void setup() {
Serial.begin(115200);
delay(100); /** For bester show log */

// Set timezone to UTC
setenv("TZ", "UTC-0", 1);
tzset();

/** Print device ID into log */
Serial.println("Serial nr: " + ag->deviceId());

Expand Down

0 comments on commit 424d1d8

Please sign in to comment.