I do not have RTC
But you do
have NTP 🙂
What I often do is synchronise with NTP and use FreeRTOS to maintain the real time.
I was trying to optimize footprint
I’m not sure if it saves a lot of code. Have you calculated that?
I had the impression that some “time” stuff drawn in from glibc. But I’m not sure.
Not that I’m aware off. Several time-functions have been rewritten in order make it independent from the libraries provided by the compiler.
Now if you insist on not using time-support, I (or you) could make a change, remove the MDTM line from:
static const char pcFeatAnswer =
if( ffconfigTIME_SUPPORT != 0 )
" REST STREAMx0a"
#if ffconfigTIMESUPPORT == 0
xLength = snprintf( pcCOMMAND
sizeof( pcCOMMAND_BUFFER ),
// return the time