emelianov / modbus-esp8266

Most complete Modbus library for Arduino. A library that allows your Arduino board to communicate via Modbus protocol, acting as a master, slave or both. Supports network transport (Modbus TCP) and Serial line/RS-485 (Modbus RTU). Supports Modbus TCP Security for ESP8266/ESP32.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#define MODBUSRTU_DEBUG seems to have no effect when defined outside ModbusSettings.h

fredlcore opened this issue · comments

I wanted to turn on debug messages and thus added #define MODBUSRTU_DEBUG before #include <ModbusRTU.h>.
However, this does not seem to have any effect. Only if I enable the definement in ModbusSettings.h it will take effect. Do I do anything wrong here?

Same for me did found a solution