Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8375841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:16:51+00:00 2026-06-09T15:16:51+00:00

I have a web server on my Arduino that should render a form to

  • 0

I have a web server on my Arduino that should render a form to save some data to the EEPROM. The HTML data has about 1500 characters. At the moment, my code looks like:

[...]
  serverClient.println("HTTP/1.1 200 OK");
  serverClient.println("Content-Type: text/html");
  serverClient.println("Connnection: close");
  serverClient.println();
  serverClient.println("<!DOCTYPE html>");
[...]

I read about storing the data in PROGMEM using the F keyword like:

[...]
  serverClient.println(F("HTTP/1.1 200 OK"));
  serverClient.println(F("Content-Type: text/html"));
  serverClient.println(F("Connnection: close"));
  serverClient.println();
  serverClient.println(F("<!DOCTYPE html>"));
[...]

But this needs more flash memory.

Is there any benefit using the second way? Or are there better solutions?

(I can’t use a SD card to store the data.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:16:52+00:00Added an answer on June 9, 2026 at 3:16 pm

    It’s a trade-off between flash memory usage and RAM usage, and there’s a lot more flash than RAM on those microcontrollers.

    I usually don’t bother storing the strings in flash unless my Arduino sketch is running out of RAM. Unfortunately, it’s not easy to tell if a sketch needs more RAM than is available – there are no compile warnings, things just won’t work or you’ll get weird behaviour. In that case, I find some arrays that I can shorten temporarily, and compile the sketch again. If the thing behaves better, I know I’m running out of RAM somewhere, so then I go looking for things I can PROGMEM or think about another way of writing the program using less RAM.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a web server that we're about to launch a number of applications
We have a web server that we're about to launch a number of applications
I have a web server that has existing pages in it that are created
I have a web server that has all of the configurations set in the
I have a web-server, that serves different domain-names, but has only one IP-address assigned.
I have a Web server that updates its data once per minute, and want
We have a web server in the DMZ that has open access to the
In my app i have access to web server. It works fine in Some
I have a web server that host several PHP applications and I want to
I have a web server hosting an HTTP chat application that works with long-polling.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.