change logging method
This commit is contained in:
parent
b5806498ea
commit
53937dd0ed
8 changed files with 58 additions and 39 deletions
|
@ -3,6 +3,8 @@
|
|||
#include <ETH.h>
|
||||
#include <ClimateCard.hpp>
|
||||
|
||||
|
||||
|
||||
// Demo PLC firmware using the ESPMegaPRO OOP library
|
||||
|
||||
ESPMegaPRO espmega = ESPMegaPRO();
|
||||
|
@ -15,6 +17,18 @@ void input_change_callback(uint8_t pin, uint8_t value) {
|
|||
}
|
||||
|
||||
void setup() {
|
||||
// Set each class's log level
|
||||
esp_log_level_set("ESPMegaPRO", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("DigitalOutputCard", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("DigitalOutputIoT", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("DigitalInputCard", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("DigitalInputIoT", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("AnalogCard", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("AnalogIoT", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("ClimateCard", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("ClimateIoT", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("InternalDisplay", ESP_LOG_VERBOSE);
|
||||
esp_log_level_set("InternalDisplayIoT", ESP_LOG_VERBOSE);
|
||||
espmega.begin();
|
||||
espmega.enableIotModule();
|
||||
ETH.begin();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue