Instathings / modbus2mqtt

Modbus 🚌 to MQTT bridge 🌉
Other
38 stars 10 forks source link

Timeout still sends MQTT update. #15

Open danielvandenberg95 opened 2 years ago

danielvandenberg95 commented 2 years ago
modbus2mqtt:error 2022-01-15 09:38:54: While reading modbus: {"name":"TransactionTimedOutError","message":"Timed out","errno":"ETIMEDOUT"}
modbus2mqtt:info  2022-01-15 09:38:54: MQTT publish: topic 'modbus2mqtt/power_meter_solar', payload '{}'

Would not want an MQTT publish if the device could not be read, right? Or an MQTT message with the error.