smarthomeNG / smarthome

Device integration platform for your smart home
https://www.smarthomeNG.de
GNU General Public License v3.0
119 stars 92 forks source link

mqtt: add error handling for non-decodable utf-8 messages #615

Closed Morg42 closed 5 months ago

Morg42 commented 5 months ago

On receiving ill-formed utf-8 messages containing illegal binary data, the mqtt module throws an exception - and stops receiving further messages.

To fix this, the unicode decode error is caught, logged and the payload is discarded.

sisamiwe commented 5 months ago

Patch successfully tested!