Moderator: igrr
I don't see how this limits html providing your code allows the radio section of the esp8266 enough cpu cycles to transmit whatever is in it's buffer. Your code can't be blocking on the transmission while you post html to the buffer.
As to the 2916 I suspect since things are on 4 byte boundaries you can't get within 4 bytes of the 2920 maximum
#include <ESP8266WiFi.h>
const char WiFiAPPSK[] = "password";
WiFiServer server(80);
String s;
void setup()
{
WiFi.mode(WIFI_AP);
String AP_NameString = "TestHTML";
char AP_NameChar[AP_NameString.length() + 1];
memset(AP_NameChar, 0, AP_NameString.length() + 1);
for (int i = 0; i < AP_NameString.length(); i++)
AP_NameChar[i] = AP_NameString.charAt(i);
WiFi.softAP(AP_NameChar, WiFiAPPSK);
server.begin();
}
void loop()
{
WiFiClient client = server.available();
if (!client) {
return;
}
client.flush();
s = "HTTP/1.1 200 OK\r\n";
s += "Content-Type: text/html\r\n\r\n";
s += "<!DOCTYPE HTML>\r\n<html>\r\n";
s += "<meta name='viewport' content='width=device-width, initial-scale=1'>";
s += "<head> <TITLE> Test HTML max size</TITLE></head><body>";
int str = 0;
for(int i = 0; i < 400; i++){
str = s.length();
String strlength = String(str) + " " + String(i) + "<BR>";
s+= strlength;
}
s +="END";
client.print(s);
client.flush();
delay(1);
}