mirror of https://github.com/jeelabs/esp-link.git
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.
19 lines
445 B
19 lines
445 B
10 years ago
|
#ifndef LOG_H
|
||
|
#define LOG_H
|
||
|
|
||
6 years ago
|
#include "httpd/httpd.h"
|
||
10 years ago
|
|
||
9 years ago
|
#define LOG_MODE_AUTO 0 // start by logging to uart0, turn aff after we get an IP
|
||
|
#define LOG_MODE_OFF 1 // always off
|
||
|
#define LOG_MODE_ON0 2 // always log to uart0
|
||
|
#define LOG_MODE_ON1 3 // always log to uart1
|
||
10 years ago
|
|
||
10 years ago
|
void logInit(void);
|
||
10 years ago
|
void log_uart(bool enable);
|
||
|
int ajaxLog(HttpdConnData *connData);
|
||
|
int ajaxLogDbg(HttpdConnData *connData);
|
||
10 years ago
|
|
||
9 years ago
|
void dumpMem(void *addr, int len);
|
||
|
|
||
10 years ago
|
#endif
|