From 48289254118fd453157fa19556cbd59c8d6f3dbb Mon Sep 17 00:00:00 2001 From: Rene Bartsch Date: Thu, 12 Jul 2018 17:21:41 +0200 Subject: [PATCH] Descriptions of AddLog functions added. --- Sensor-API.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sensor-API.md b/Sensor-API.md index d2e41aab..b4d32c5e 100644 --- a/Sensor-API.md +++ b/Sensor-API.md @@ -149,11 +149,13 @@ snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"MPR121%c\":{\"Button%i\":%i}}" MqttPublishPrefixTopic_P(RESULT_OR_STAT, mqtt_data); ``` ### void AddLog(byte loglevel) +This function adds log messages to the local logging system, e.g. ``` snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_I2C "MPR121(%c) " D_FOUND_AT " 0x%X"), pS->id[i], pS->i2c_addr[i]); AddLog(LOG_LEVEL_INFO); ``` ### void AddLogSerial(byte loglevel) +This function adds log messages to the serial UART, e.g. ``` snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_I2C "MPR121(%c) " D_FOUND_AT " 0x%X"), pS->id[i], pS->i2c_addr[i]); AddLogSerial(LOG_LEVEL_INFO);