Control of communication with timestamp
Hi,
I wan´t to make a heartbeat function to control my wireless device (LoraWan) so it is communicating with my bOS server.
I get a timestamp as a string, and i would like to check the string with the time on the bOS server. I think the month and date should be enough. Any suggestions on how to do this the best way. I started to try to parse out the string but I didn´t manage to parse it right. The string that is provided: 2025-05-20 09:26:05 and this will change every day.
Best regards Timi

Hello,
Glad that it worked.
As I said, I'm not an expert on regex, so I just searched and came up with this implementation.
Best regards
Thanks for the help Ricardo, I really appreciate this!