Exception on creating dummy (empty) ModbusRequest
maxpejs opened this issue · comments
Max Pejs commented
If I create an ModbusRequest without any values, it uses the ctor with default values. There is a switch statement and a valid function code value is required, so exception will be thrown
switch (functionRegisters()) { case utils::OutputCoils: ...