is there a way to get time via rs232 communication from MPP solar inverter?
Thank you for the new thread. Where are the links to the documentation?
Does the MPP solar inverter know what time it is?
I am not sure, best way to use RTC
An RTC would be a good choice.
yes, sure
another question please
is there an example how to get elapsed time between to dates?
The Arduino Time library TimeLib.h has functions to do that.
Convert dates/times to unix timestamps and subtract.
do you have an example code?
Not for that exact task, no. Start by running the TimeLib.h library example programs.
It is not very difficult to subtract two timestamps, which is the number of elapsed seconds.
From there, an imaginative person could calculate minutes, hours or days of elapsed time.
the idea that I want to do for example:
I pressed button first time at date 31/1/2021 9:32:21
I pressed button second time at date 2/5/2023 23:01:59
so I want to know elapsed days, months, years, hours, minutes, seconds
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.