Yes the UnitIdentifer is not needed for ModbusTCP, only for Modbus RTU.
It is specified to set the unitidetifier for ModbusTCP to "0" of "0xFF".
However I experienced some problems with a ModbusServer to set it to "0", thats why I changed the default setting to "1". But I think I will change that in the future again to meet the specification.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi could you try to set the "unitIdentifier" to "0" or "0xFF" (Try both)
Yes the UnitIdentifer is not needed for ModbusTCP, only for Modbus RTU.
It is specified to set the unitidetifier for ModbusTCP to "0" of "0xFF".
However I experienced some problems with a ModbusServer to set it to "0", thats why I changed the default setting to "1". But I think I will change that in the future again to meet the specification.