• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

PROGMEM

Q&A Forum › Category: ESP8266 › PROGMEM
1 Vote Up Vote Down
John Kneen asked 5 years ago

In book Build Web Servers… p159 is code Index html[ ] PROGMEM = R”rawliteral(  …..
then on page 163 is statement with PROGMEM the variable is stored in RAM. I’m not sure that’s correct. That directive tells the compiler to use the original copy of the variable that is in Flash (Program Memory -ROM). Further a copy is not placed into RAM at Run time.
A question – the R and rawliteral – do they both do the same job – allowing one to spread text across several lines? 

Question Tags: PROGMEM
1 Answers
1 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
You are right about the PROGRMEM. I’ll fix that in the next eBook update and add an errata to the eBook page.
As for the R”rawliteral. The R means “Treat everything between these delimiters as a raw string”. That is, everything between “rawliteral”(at the beginning of the string) and “rawliteral”(at the end of the string).
Thanks for pointing that out.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

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.

      Notifications