From 990bfb53390c769a2386c836a56a24a8d7316b39 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 13 Oct 2024 14:51:02 +0200 Subject: [PATCH] track uptime --- embadet/main/apple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embadet/main/apple.c b/embadet/main/apple.c index 38c86dc..7275218 100644 --- a/embadet/main/apple.c +++ b/embadet/main/apple.c @@ -21,6 +21,8 @@ int app_main() { // Variable to store the MAC address uint8_t baseMac[6]; + + long uptime = (xTaskGetTickCount() * (1000/configTICK_RATE_HZ)); // Get MAC address of the WiFi station interface esp_read_mac(baseMac, ESP_MAC_WIFI_STA);