Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By andrew melvin
#18788 I've done a fair bit of reading but not sure how best to proceed.

I currently have several web pages being served on the esp. I have defined a string httpbuf and for each page I just += it adding line by line and then send it out at the end in each function. It's a global variable. At multiple points when constructing it I add in variables, fields etc to make the webpage...

My question is, does this consume a lot of my heap by having strings defined? Is there a better way, for example using the F macro...

I'm not sure at all how to implement that in a way that allows me to substitute in various variables and readings. Eg using sprinf (which I've also never used)
(My experience in programming started with this IDE, so I'm a big novice!)

Any help appreciated.

Andrew