|
WiFi Logger component
1.0
WiFi Logger component, uses wifi to output logs
|
#include "wifi_logger.h"
Functions | |
| esp_err_t | init_queue (void) |
| Initialises message queue. More... | |
| void | init_wifi (void) |
| Initialises and connects to wifi. More... | |
| esp_err_t | send_to_queue (char *log_message) |
| Sends log message to message queue. More... | |
| char * | receive_from_queue (void) |
| Receive data from queue. Timeout is set to portMAX_DELAY, which is around 50 days (confirm from esp32 specs) More... | |
| void | generate_log_message (esp_log_level_t level, const char *TAG, int line, const char *func, const char *fmt,...) |
| generates log message, of the format generated by ESP_LOG function More... | |
| int | system_log_message_route (const char *fmt, va_list tag) |
| route log messages generated by ESP_LOGX to the wifi logger More... | |
| void | start_wifi_logger (void) |
| wrapper function to start wifi logger More... | |
| void generate_log_message | ( | esp_log_level_t | level, |
| const char * | TAG, | ||
| int | line, | ||
| const char * | func, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
generates log message, of the format generated by ESP_LOG function
| level | set ESP LOG level {E, W, I, D, V} |
| TAG | Tag for the log message |
| line | line |
| func | func |
| fmt | fmt |
| esp_err_t init_queue | ( | void | ) |
Initialises message queue.
| void init_wifi | ( | void | ) |
Initialises and connects to wifi.
| char* receive_from_queue | ( | void | ) |
Receive data from queue. Timeout is set to portMAX_DELAY, which is around 50 days (confirm from esp32 specs)
| esp_err_t send_to_queue | ( | char * | log_message | ) |
Sends log message to message queue.
| log_message | log message to be sent to the queue |
| void start_wifi_logger | ( | void | ) |
wrapper function to start wifi logger
| int system_log_message_route | ( | const char * | fmt, |
| va_list | tag | ||
| ) |
route log messages generated by ESP_LOGX to the wifi logger
| fmt | logger string format |
| tag | arguments |
1.8.13