track uptime
This commit is contained in:
parent
9a6c4d8748
commit
990bfb5339
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ int app_main() {
|
||||||
// Variable to store the MAC address
|
// Variable to store the MAC address
|
||||||
uint8_t baseMac[6];
|
uint8_t baseMac[6];
|
||||||
|
|
||||||
|
long uptime = (xTaskGetTickCount() * (1000/configTICK_RATE_HZ));
|
||||||
|
|
||||||
// Get MAC address of the WiFi station interface
|
// Get MAC address of the WiFi station interface
|
||||||
esp_read_mac(baseMac, ESP_MAC_WIFI_STA);
|
esp_read_mac(baseMac, ESP_MAC_WIFI_STA);
|
||||||
printf("Station MAC: ");
|
printf("Station MAC: ");
|
||||||
|
|
Loading…
Reference in a new issue