|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Routes microlog output to the microSD card attached to the esp32. More...
#include <libents/controller/controller.h>#include <libents/controller/modules/microsd.h>#include <libtock-sync/services/alarm.h>#include <stdbool.h>#include <ulog.h>Go to the source code of this file.
Macros | |
| #define | LOG_LINE_SIZE 240 |
Functions | |
| int | main (void) |
Routes microlog output to the microSD card attached to the esp32.
Registers a microlog output handler that forwards every formatted log line over i2c to the esp32, which appends it to /stm32.log on the microSD card. Log lines continue to go to the Tock console as well, the stdout output is never removed.
Definition in file main.c.
| #define LOG_LINE_SIZE 240 |
Must match the MicroSDCommand.log field, which is 240 bytes (239 chars plus the NUL). Anything smaller truncates the line here, before the proto sees it, and ulog_event_to_cstr() writes "LEVEL FILE:LINE: MESSAGE" into this buffer, so a long FILE eats into the space left for the message.
| int main | ( | void | ) |
Definition at line 51 of file main.c.
References ControllerDeinit(), and ControllerInit().