kaklakariada / fritzbox-java-api

Java API for managing FritzBox HomeAutomation
GNU General Public License v3.0
20 stars 13 forks source link

com.github.kaklakariada.fritzbox.mapping.DeserializerException: Error parsing response body #8

Closed WolfgangFahl closed 6 years ago

WolfgangFahl commented 6 years ago

When there is a repeater in the network the deserializer does not work anymore.

Pitillo commented 6 years ago

The Problem is that this library is only for the SmartHome devices. I had the same Error with the AVM FRITZ!DECT 300. For these I've edited the Library so you can also use them and don't get the error. If you could provide the full stacktrace, i could try to change the library, so you can use the library for repeaters to.

WolfgangFahl commented 6 years ago

https://github.com/WolfgangFahl/fritzbox-java-api/commit/e07c3486f8ec4b3b46e8ed17e6aee885836e7f6e lines 46 to 50 have the fix - some xmlelements are not valid for repeaters

Pitillo commented 6 years ago

If you would provide the full StackTrace i coul add features to comunicate with repeaters. Unfortunately I don't have any repeaters in my network, so i can't write the needed classes. I could try to add the needed classes using the documentation by AVM. When I'm complete you could try to use the library with the new features.

kaklakariada commented 6 years ago

Thanks to @WolfgangFahl, I implemented the changes from https://github.com/WolfgangFahl/fritzbox-java-api/commit/e07c3486f8ec4b3b46e8ed17e6aee885836e7f6e.