Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ezeio2:expref:uptime [2019-06-15 00:24] – created andreh | ezeio2:expref:uptime [2019-09-02 18:55] (current) – andreh | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Uptime ====== | ||
+ | |||
==== Uptime() ==== | ==== Uptime() ==== | ||
Line 8: | Line 10: | ||
This function returns the number of seconds since last reset. | This function returns the number of seconds since last reset. | ||
+ | |||
+ | The cause of a reset may be: | ||
+ | * Power being removed/ | ||
+ | * Software reset due to firmware update | ||
+ | * Software reset requested by the user | ||
+ | * Software or hardware error (Watchdog reset) | ||
+ | * Waking up from sleep mode | ||
=== Parameters === | === Parameters === | ||
Line 16: | Line 25: | ||
Returns the number of seconds since the last reset. | Returns the number of seconds since the last reset. | ||
- | |||
- | The cause of a reset may be: | ||
- | * Power being removed/ | ||
- | * Software reset due to firmware update | ||
- | * Software reset requested by the user | ||
- | * Software or hardware error (Watchdog reset) | ||
- | * Waking up from sleep mode | ||
=== Example usage === | === Example usage === | ||
- | '' | + | < |
+ | |||
+ | Will return 86400 after 24 hours running. |