As the title says... Chat on...

User avatar
By joefly888
#18412 Hi I am using tmr.time() as a timestamp and just found out that there is bug.. http://www.thalin.se/2015/04/nodemcu-tm ... -bugs.html

apparently it has been fixed, but can find the latest bin firmware
https://github.com/nodemcu/nodemcu-firmware/issues/314

so i am using the advice from the link above for making my own timestamp.

However, made me think of an issue, when do the integers "flip" when it gets too large and goes to 0 or goes negative or soemething crazy like that. Is there a way to check for when it happens, I want to leave my module running unattended.

Thanks
User avatar
By TerryE
#19645 If you are using a standard Lua build then all numbers are double precision floating point. However these can take exact integers up to 2^53 if I recall correctly.