-->
Page 1 of 1

Trying to program the NodeMCU 8266 board to auto refresh

PostPosted: Sat Nov 04, 2017 3:23 pm
by Meathome2017
Board NodeMCU 8266 12e
Using the Arduino IDE as a programmer.
The board is working fine as long as I try to do nothing out of the ordinary.
I would like to auto refresh the webpage every 10 seconds and I have tried using this command
<meta http-equiv="refresh" content="10" >
but this fails with the error
client.println("<meta http-equiv="refresh" content="10" ">);

^
exit status 1
expected ')' before 'refresh'
I am very very new to all of this and probably doing something and probably doing something obviously wrong but I can’t see it.

Re: Trying to program the NodeMCU 8266 board to auto refresh

PostPosted: Tue Nov 07, 2017 11:56 pm
by gdsports
Escape the double quotes like this.

Code: Select allclient.println("<meta http-equiv=\"refresh\" content=\"10\"">);