Class IgnoreZeroConverter

java.lang.Object
io.openems.edge.bridge.modbus.api.ElementToChannelConverter
io.openems.edge.battery.fenecon.commercial.IgnoreZeroConverter

public class IgnoreZeroConverter extends ElementToChannelConverter
Before the battery is started, values are wrongly received as 'zero' via Modbus. This logic replaces these wrong values in the beginning with 'null'.

The class optionally creates a

invalid reference
ElementToChannelConverterChain
, for use-cases when additionally to the above 'zero/null' logic a scale-factor is required.