Mazurel / Modbus

Modbus library for modern C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception on creating dummy (empty) ModbusRequest

maxpejs opened this issue · comments

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: ...