timherreijgers / Domotics-base

Project containing base code for domotics projects
MIT License
0 stars 0 forks source link

Improve error handling in the MQTT middleware #47

Open timherreijgers opened 1 year ago

timherreijgers commented 1 year ago

Currently, the MQTT middleware returns false if a operation doesn't succeed. The problem with this approach is that it's really easy to ignore a return value (unless marked nodiscard). This makes the API easy to use wrong. We should find a solution to this.