Uptime
Uptime()
Return number of seconds since last reset.
Description
Uptime()
This function returns the number of seconds since last reset.
The cause of a reset may be:
- Power being removed/restored
- Software reset due to firmware update
- Software reset requested by the user
- Software or hardware error (Watchdog reset)
- Waking up from sleep mode
Parameters
none
Return value
Returns the number of seconds since the last reset.
Example usage
Uptime()
Will return 86400 after 24 hours running.