Skip to main content

I'm new to the Arduino and diddo not quite understand the F() Macro so farF() macro yet. 

In my code, I have a stringString, and as I want to transfer it via WebServer, I need to write it to the answer.

Somehow I need to convert the stringString, to fit it into the fastrprintlfastrprintln() function.

String weather_json = getWeatherData(); char weather[2048]; weather_json.toCharArray(weather,2048); client.fastrprintln(F(weather));

String weather_json = getWeatherData();
char weather[2048];
weather_json.toCharArray(weather,2048);
client.fastrprintln(F(weather));

Do you have any idea for me? Thanks!

I'm new to the Arduino and did not quite understand the F() Macro so far. In my code, I have a string, and as I want to transfer it via WebServer I need to write it to the answer.

Somehow I need to convert the string, to fit it into the fastrprintl function.

String weather_json = getWeatherData(); char weather[2048]; weather_json.toCharArray(weather,2048); client.fastrprintln(F(weather));

Do you have any idea for me? Thanks!

I'm new to the Arduino and do not quite understand the F() macro yet. 

In my code, I have a String, and as I want to transfer it via WebServer, I need to write it to the answer.

Somehow I need to convert the String, to fit it into the fastrprintln() function.

String weather_json = getWeatherData();
char weather[2048];
weather_json.toCharArray(weather,2048);
client.fastrprintln(F(weather));

Do you have any idea for me?

Source Link
user3260462
  • 71
  • 1
  • 1
  • 2

Store String using F() Macro

I'm new to the Arduino and did not quite understand the F() Macro so far. In my code, I have a string, and as I want to transfer it via WebServer I need to write it to the answer.

Somehow I need to convert the string, to fit it into the fastrprintl function.

String weather_json = getWeatherData(); char weather[2048]; weather_json.toCharArray(weather,2048); client.fastrprintln(F(weather));

Do you have any idea for me? Thanks!