This is the issue:
- I have a function that takes a "const char *" input, the header of the function is like this:
void writeFile(fs::FS &fs, const char * path, const char * message)
- I have some data stored into different arrays (time_t, uint32_t and what not). I can transform this into "char" arrays like this:
time_t timestamp = get_rtctime(); //Getting my timestamp into char: uint32_t tStmp_32 = (uint32_t)timestamp; char timeStr; snprintf(timeStr, sizeof timeStr, "%08X", tStmp_32);
Until this point, no problems at all.
- Converting uint or char to const char, the way is supposed to for writeFile to accept it without errors.
I'm not sure how to pull that part of. Is it possible? If so, how can it be performed?
Thanks for any guidance you can provide