Merge a4defa37a4
into 503e66a500
This commit is contained in:
commit
a7fa9f3978
2 changed files with 10 additions and 6 deletions
|
@ -54,11 +54,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
const char *wificfg_default_ssid = "EOR_%02X%02X%02X";
|
const char *wificfg_default_ssid __attribute__ ((weak)) = "EOR_%02X%02X%02X";
|
||||||
const char *wificfg_default_password = "esp-open-rtos";
|
const char *wificfg_default_password __attribute__ ((weak)) = "esp-open-rtos";
|
||||||
const char *wificfg_default_hostname = "eor-%02x%02x%02x";
|
const char *wificfg_default_hostname __attribute__ ((weak)) = "eor-%02x%02x%02x";
|
||||||
|
|
||||||
/* The http task stack allocates a single buffer to do much of it's work. */
|
/* The http task stack allocates a single buffer to do much of its work. */
|
||||||
#define HTTP_BUFFER_SIZE 54
|
#define HTTP_BUFFER_SIZE 54
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1540,7 +1540,7 @@ static int handle_wificfg_challenge_post(int s, wificfg_method method,
|
||||||
return wificfg_write_string(s, http_redirect_header);
|
return wificfg_write_string(s, http_redirect_header);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef configUSE_TRACE_FACILITY
|
#if configUSE_TRACE_FACILITY
|
||||||
static const char *http_tasks_content[] = {
|
static const char *http_tasks_content[] = {
|
||||||
#include "content/tasks.html"
|
#include "content/tasks.html"
|
||||||
};
|
};
|
||||||
|
@ -1638,7 +1638,7 @@ static const wificfg_dispatch wificfg_dispatch_list[] = {
|
||||||
{"/challenge.html", HTTP_METHOD_POST, handle_wificfg_challenge_post, false},
|
{"/challenge.html", HTTP_METHOD_POST, handle_wificfg_challenge_post, false},
|
||||||
{"/wificfg/restart.html", HTTP_METHOD_POST, handle_restart_post, true},
|
{"/wificfg/restart.html", HTTP_METHOD_POST, handle_restart_post, true},
|
||||||
{"/wificfg/erase.html", HTTP_METHOD_POST, handle_erase_post, true},
|
{"/wificfg/erase.html", HTTP_METHOD_POST, handle_erase_post, true},
|
||||||
#ifdef configUSE_TRACE_FACILITY
|
#if configUSE_TRACE_FACILITY
|
||||||
{"/tasks", HTTP_METHOD_GET, handle_tasks, false},
|
{"/tasks", HTTP_METHOD_GET, handle_tasks, false},
|
||||||
{"/tasks.html", HTTP_METHOD_GET, handle_tasks, false},
|
{"/tasks.html", HTTP_METHOD_GET, handle_tasks, false},
|
||||||
#endif /* configUSE_TRACE_FACILITY */
|
#endif /* configUSE_TRACE_FACILITY */
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Printf format used to initialize a default AP ssid. It is passed the last
|
* Printf format used to initialize a default AP ssid. It is passed the last
|
||||||
* three bytes of the mac address. This may be NULL to not default the ssid,
|
* three bytes of the mac address. This may be NULL to not default the ssid,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue