using F() with log_d() ?
Posted: Mon Oct 05, 2020 12:57 am
Heya,
I've just changed all my logging from using on the esp32 with arduino framework, to using etc to be able to set logging levels.
But, I've noticed that doing this has bumped my ram usage by ~6%, it looks to me that its from the strings made by using or where as with Serial I would use to put that string in to progmem.
But when I try to use F() with log_d I get errors.
Anyone know hoe to use progmem with log_d?
Cheers
Sol
I've just changed all my logging from using
Code: Select all
Serial.print
Code: Select all
log_d
Code: Select all
log_e
But, I've noticed that doing this has bumped my ram usage by ~6%, it looks to me that its from the strings made by using
Code: Select all
log_d("This is a debug log message")
Code: Select all
log_d("It has been %d days since reboot", days)
Code: Select all
Serial.println(F("This is a debug log message"))
But when I try to use F() with log_d I get errors.
Anyone know hoe to use progmem with log_d?
Cheers
Sol