mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 04:58:17 +08:00
web_log
This commit is contained in:
@@ -14,9 +14,8 @@ void SetLogRecord(LogRecord* lr, char* log);
|
||||
char* GetLogRecord(int idx);
|
||||
|
||||
|
||||
#define os_log(format, ...) \
|
||||
#define web_log(format, ...) \
|
||||
LOG_TMP = (char*)malloc(sizeof(char)*LOG_LEN); \
|
||||
snprintf(LOG_TMP, LOG_LEN, format, ##__VA_ARGS__); \
|
||||
SetLogRecord(&log_record, LOG_TMP); \
|
||||
custom_log("WIFI", format, ##__VA_ARGS__) \
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "mqtt_server/user_function.h"
|
||||
#include "http_server/web_log.h"
|
||||
|
||||
#define os_log(format, ...) custom_log("WIFI", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
|
||||
|
||||
char wifi_status = WIFI_STATE_NOCONNECT;
|
||||
|
||||
mico_timer_t wifi_led_timer;
|
||||
|
||||
Reference in New Issue
Block a user