Hey guys!
What is the proper way to add a timestamp into a Sprintf String that will then be used in a Particle Publish event?
“Time.timeStr()” designated as “%s” formatting is not working.
snprintf(Status, sizeof(Status), "%s:%s:%.2f:%u:%u:%u:%u:", Time.timeStr(),ID,lipoVoltage,Distance_Threshold_Passed,Light_Threshold_Passed,proximity_data,ambient_light);
If I wanted to use the Time.timeStr(), formatting instead of UNIX time what do I need to change?
I’ll keep looking for the answer but any help would be appreciated.