Hola. estoy haciendo un proyecto con una mini pagina web por html, para controlar unos relays. Al código, donde muestra la pagina web funciona mostrando hasta cierta parte del código, si le agrego una linea mas, no responde mas la pagina web.. Acaso es tamaño máximo de memoria?? He probado cambiar el buffer a 800 pero igual.
Se utiliza un mini mega 2560 + ENC28J60.
Adjunto código + imágenes para que vean el problema. están encerrado en circulo rojo la parte del código que si agrego no funciona mas.
S.png = pagina funcionando con el codigo recortado S2.png
N.png pagina no funciona con el agregado N2.png
static word mainPage()
{
BufferFiller bfill = ether.tcpOffset();
bfill.emit_p(PSTR("HTTP/1.0 200 OK\r\n"
"Content-Type: text/html\r\nPragma: no-cache\r\n\r\n"
"<html><head><title>Control Web</title></head>"
"<body>"
"<div style='text-align:center;'>"
"<h1>Control de panel de guardia</h1>"
"
"
"<h2>Control de cortinas</h2>"
"Cortina 1 = $S
"
"<a href='./?data1=0'><input type='button' value='SUBE'></a>"
"<a href='./?data1=1'><input type='button' value='PARA'></a>"
"<a href='./?data1=2'><input type='button' value='BAJA'></a>"
"
Cortina 2 = $S
"
"<a href='./?data2=0'><input type='button' value='SUBE'></a>"
"<a href='./?data2=1'><input type='button' value='PARA'></a>"
"<a href='./?data2=2'><input type='button' value='BAJA'></a>"
"
Cortina 3 = $S
"
"<a href='./?data3=0'><input type='button' value='SUBE'></a>"
"<a href='./?data3=1'><input type='button' value='PARA'></a>"
"<a href='./?data3=2'><input type='button' value='BAJA'></a>"
"
Cortina 5 = $S
"
"<a href='./?data4=0'><input type='button' value='SUBE'></a>"
"<a href='./?data4=1'><input type='button' value='PARA'></a>"
"<a href='./?data4=2'><input type='button' value='BAJA'></a>"
"<h2>Control de luces de playon</h2>"
"Plafon 1 = $S
"
"<a href='./?data5=0'><input type='button' value='OFF'></a>"
"<a href='./?data5=1'><input type='button' value='ON'></a>"
"
Plafon 2 = $S
"
"<a href='./?data6=0'><input type='button' value='OFF'></a>"
"<a href='./?data6=1'><input type='button' value='ON'></a>" //----HASTA ACA FUNCIONA OK--- SI AGREGO UNA LINEA MAS YA NO
"
Plafon 3 = $S
"
"<a href='./?data7=0'><input type='button' value='OFF'></a>"
"<a href='./?data7=1'><input type='button' value='ON'></a>"/*
"
Plafon 4 = $S
"
"<a href='./?data8=0'><input type='button' value='OFF'></a>"
"<a href='./?data8=1'><input type='button' value='ON'></a>"
"
Plafon 5 = $S
"
"<a href='./?data9=0'><input type='button' value='OFF'></a>"
"<a href='./?data9=1'><input type='button' value='ON'></a>"
"
Plafon 6 = $S
"
"<a href='./?data10=0'><input type='button' value='OFF'></a>"
"<a href='./?data10=1'><input type='button' value='ON'></a>"
"<h2>Control de reflectores</h2>"
"
Reflectores exteriores = $S
"
"<a href='./?data11=0'><input type='button' value='OFF'></a>"
"<a href='./?data11=1'><input type='button' value='ON'></a>"
"<h2>Control de altavoces y bluetooth</h2>"
"
Altavoces = $S
"
"<a href='./?data12=0'><input type='button' value='OFF'></a>"
"<a href='./?data12=1'><input type='button' value='ON'></a>"
"<h2>Control de Interna y Sirena</h2>"
"
Interna = $S
"
"<a href='./?data13=0'><input type='button' value='OFF'></a>"
"<a href='./?data13=1'><input type='button' value='ON'></a>"
"
Sirena = $S
"
"<a href='./?data14=0'><input type='button' value='OFF'></a>"
"<a href='./?data14=1'><input type='button' value='ON'></a>"*/
"
</div>\n</body></html>"),
estadocortina1,
estadocortina2,
estadocortina3,
estadocortina5,
estadoluz1,
estadoluz2,
estadoluz3,
estadoluz4,
estadoluz5,
estadoluz6,
estadoreflectores,
estadoaltavoz,
estadointerna,
estadosirena);
return bfill.position();
}



