#include #include "settings.h" const char* ssid = "TWANG_AP"; const char* passphrase = "esp32rocks"; WiFiServer server(80); char linebuf[80]; int charcount=0; void ap_setup() { bool ret; /* * Set up an access point * @param ssid Pointer to the SSID (max 63 char). * @param passphrase (for WPA2 min 8 char, for open use NULL) * @param channel WiFi channel number, 1 - 13. * @param ssid_hidden Network cloaking (0 = broadcast SSID, 1 = hide SSID) */ ret = WiFi.softAP(ssid, passphrase, 2, 0); //Serial.println("\r\nWiFi AP online ..."); server.begin(); } void sendStatsPage(WiFiClient client) { // HTTP headers always start with a response code (e.g. HTTP/1.1 200 OK) // and a content-type so the client knows what's coming, then a blank line: client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.println(""); client.println(""); client.println("

TWANG32 Play Stats

"); client.println("