nograx / ioBroker.zendure-solarflow

An ioBroker adapter for Zendure SolarFlow devices
MIT License
24 stars 6 forks source link

IoBroker Adapter fails during firmware update due to JSON parse errors. #37

Closed jafrka closed 6 months ago

jafrka commented 7 months ago

Describe the bug
The adapter failed during a firmware update. Non-JSON text is delivered and caused the JSON.parse to fail.

To Reproduce
Steps to reproduce the behavior:

  1. Firmware Update

Expected behavior
Adapter doesn't fail

Screenshots & Logfiles
Don't have it my log files anymore

Versions:
1.1.20

Additional context
I put a try around the JSON parse in my fork to prevent it in the future. Don't know whether there is a better solution.

nograx commented 6 months ago

Fixed in Version 1.4.0, unfortunately this can not be tested... I have used your suggestion but need to add typescript interfaces for the MQTT messages.