mirror of https://github.com/arendst/Tasmota.git
Descriptions of AddLog functions added.
parent
9e5a3b8d3d
commit
4828925411
|
@ -149,11 +149,13 @@ snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"MPR121%c\":{\"Button%i\":%i}}"
|
||||||
MqttPublishPrefixTopic_P(RESULT_OR_STAT, mqtt_data);
|
MqttPublishPrefixTopic_P(RESULT_OR_STAT, mqtt_data);
|
||||||
```
|
```
|
||||||
### void AddLog(byte loglevel)
|
### 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]);
|
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);
|
AddLog(LOG_LEVEL_INFO);
|
||||||
```
|
```
|
||||||
### void AddLogSerial(byte loglevel)
|
### 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]);
|
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);
|
AddLogSerial(LOG_LEVEL_INFO);
|
||||||
|
|
Loading…
Reference in New Issue