smarthomeNG / smarthome

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

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

Closed Morg42 closed 10 months ago

Morg42 commented 10 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 10 months ago

Patch successfully tested!