Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By henkoegema
#48765 I'm trying to compile (Arduino IDE) a web page for text input to a LCD screen connected via I2C with an ESP8266-1.
(line numbers only for clarification)

I get error message on line 4: expected ',' or ';' before numeric constant

What am I doing wrong on line 4 ?

1. String form =
2. "<center>"
3. "<h1>LCD input screen</h1>"
4. "<textarea rows="4" cols="20" name="lcd" form="mylcdform">" <-------- :?
5. "</textarea>"
6. "</center>"

7. "<center>"
8 "<form action="msg" id="mylcdform">"
9. "<input type="submit">"
10. "</form>"
11. "</center>";
User avatar
By reaper7
#48766 replace:
Code: Select all"<textarea rows="4" cols="20" name="lcd" form="mylcdform">"

with:
Code: Select all"<textarea rows=\"4\" cols=\"20\" name=\"lcd\" form=\"mylcdform\">"


internal quotations must be preceded by: \
User avatar
By henkoegema
#48771
reaper7 wrote:replace:
Code: Select all"<textarea rows="4" cols="20" name="lcd" form="mylcdform">"

with:
Code: Select all"<textarea rows=\"4\" cols=\"20\" name=\"lcd\" form=\"mylcdform\">"


internal quotations must be preceded by: \


Thanks very much. :)
(I have spent days to find it (with no result) )