main/task_sdcard.h

changeset 62
2e90ada37476
parent 54
7b134c27fadb
equal deleted inserted replaced
61:c7b8a9931b59 62:2e90ada37476
48 float hlt_pv; ///< HLT temperature. 48 float hlt_pv; ///< HLT temperature.
49 int hlt_power; ///< HLT power in %. 49 int hlt_power; ///< HLT power in %.
50 char event[64]; ///< Event message. 50 char event[64]; ///< Event message.
51 } JSON_log; 51 } JSON_log;
52 52
53
54 /**
55 * @brief Write application messages to a logfile on the sdcard. The
56 * logfile is /sdcard/log/sysyyymmdd.log and is only used
57 * when the time is set from NTP and a card is mounted.
58 * Log messages are always copied to ESP_LOGI() too.
59 * @param tag is the log tag just as in ESP_LOGx().
60 * @param * is the formatted string.
61 */
62 void log_msg(const char *tag, const char *, ...);
63
53 /** 64 /**
54 * @brief Begin a new logfile. The logfile is created and written to on 65 * @brief Begin a new logfile. The logfile is created and written to on
55 * the spiffs filesystem. 66 * the spiffs filesystem.
56 * @param t The time in seconds since the Epoch, to create the filename. 67 * @param t The time in seconds since the Epoch, to create the filename.
57 */ 68 */

mercurial