I am seeing a bizarre issue when compiling our firmware with mDot library 4.0.0 and mbed os 6.1.0. when this piece of code below runs on the mDot I get different results for the time being stored in these local and instance variables. The m_tSuccessfulPktTranmitTimeInSeconds is a class instance variable of type time_t. I can’t reproduce this issue in the prior versions of the mdot library or mbed os i.e. pre 6.0.0.
time(&m_tSuccessfulPktTranmitTimeInSeconds);
time_t currentTime = time(NULL);
logDebug("Transmission Time: %u seconds, Current Time: %u Seconds!!", m_tSuccessfulPktTranmitTimeInSeconds, currentTime);
Here is what is printed out:
Transmission Time: 536872128 seconds, Current Time: 1451606717 Seconds
The variable m_tSuccessfulPktTranmitTimeInSeconds stays stuck at this value 536872128 or it seems so in the logs. Any thoughts or is this some kind of bizarre logging issue?
Thanks,
Ajay