You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
459 B
23 lines
459 B
#include "ets_sys.h"
|
|
#include "driver/uart.h"
|
|
#include "osapi.h"
|
|
#include "httpd.h"
|
|
#include "io.h"
|
|
#include "httpdespfs.h"
|
|
#include "cgi.h"
|
|
|
|
HttpdBuiltInUrl builtInUrls[]={
|
|
// {"/", cgiLiteral, "Lalala etc"},
|
|
{"/led.cgi", cgiLed, NULL},
|
|
{"/test.cgi", cgiTest, NULL},
|
|
{"*", cgiEspFsHook, NULL},
|
|
{NULL, NULL, NULL}
|
|
};
|
|
|
|
|
|
void user_init(void) {
|
|
uart_init(BIT_RATE_115200, BIT_RATE_115200);
|
|
ioInit();
|
|
httpdInit(builtInUrls, 80);
|
|
os_printf("\nReady\n");
|
|
}
|
|
|