track uptime
This commit is contained in:
parent
9a6c4d8748
commit
990bfb5339
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue