track uptime

This commit is contained in:
Johannes Jöns 2024-10-13 14:51:02 +02:00
parent 9a6c4d8748
commit 990bfb5339

View file

@ -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);