yiannisbourkelis / uptime-library Goto Github PK
View Code? Open in Web Editor NEWUptime library for Arduino boards and compatible systems
License: GNU General Public License v3.0
Uptime library for Arduino boards and compatible systems
License: GNU General Public License v3.0
Using Arduino Cloud Web Editor, when I add:
#include "uptime.h"
or
#include "uptime_formatter.h"
I get the compile error:
In file included from /home/builder/opt/libraries/latest/uptime_library_1_0_0/src/uptime_formatter.cpp:21:0: /home/builder/opt/libraries/latest/uptime_library_1_0_0/src/uptime_formatter.h:32:12: error: 'String' does not name a type static String getUptime(); ^~~~~~
I have tried to add the following line:
#include "Arduino.h"
but this did not help.
Very nice and thank you for this library! I have a project where I need to get total seconds of uptime for formatting elsewhere. Is it possible to get the total uptime in seconds with this library?
Seems like the code is loosing a few milliseconds (4,294,967,295 - uptime::m_last_milliseconds) when millis counter rollover
Hi,
I added the uptime-library to my ESP32 project. When using any of the functions of the example, e.g....
uptime::calculateUptime();
I always get the following compile error: name followed by '::' must be a class or namespace name
Any idea what could be wrong? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.