Class KPServer

Inheritance Relationships

Base Type

Class Documentation

class KPServer : public KPComponent

Public Functions

KPServer(const char *name, const char *ssid, const char *pass, const size_t tcp_limit = 1400)
void setup()
void begin()
void update()
void on(const char *path, const char *method, EndPointCallback callback)
void get(const char *path, EndPointCallback callback)
void post(const char *path, EndPointCallback callback)
void serveStaticFile(const char *path, const char *filepath, KPDataStoreInterface &store, const char *contentType)
void handleRequest(Request &req)
void printWiFiStatus()
void printMacAddress(byte mac[])

Public Members

const char *ssid
const char *pass
uint8_t status = WL_IDLE_STATUS
bool isRunning = false
std::vector<RequestHandler> handlers
WiFiServer server
const size_t TCP_LIMIT = 1400