Just quickly - serial.print(F()) use for terminal.print?

I’m getting low memory warnings, but because I have added loads of terminal prints,

Sketch uses 73,750 bytes (29%) of program storage space. Maximum is 253,952 bytes.
Global variables use 7,203 bytes (87%) of dynamic memory, leaving 989 bytes for local variables. Maximum is 8,192 bytes.
Low memory available, stability problems may occur.

can i use the “F macro” like this:

    terminal.println(F(": Roof Temp higher than roofExtractFanTempSetting = roofExtractFan ON"));

like i use for the serial prints?

also, is:

Serial.printf("http://%s/update or http://%s.lan/update if you prefer.\n", charipaddress, charChipID);

the same as:

Serial.print(F("http://%s/update or http://%s.lan/update if you prefer.\n", charipaddress, charChipID));

this will help me lots if it is as easy as adding an f and not a (F( )!!

just read this: http://playground.arduino.cc/Main/Printf
yes you can use F() macro with Terminal

1 Like