You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the method "GetDevices" I get empty xml elements for my DECT 200. My guess is that the device is currently unplugged (but still in the list of devices).
The device part of the response looks as follows: <device identifier="08761 0348868" id="17" functionbitmask="35712" fwversion="04.25" manufacturer="AVM" productname="FRITZ!DECT 200"> <present>0</present> <txbusy>0</txbusy> <name>Lavalampe</name> <switch> <state></state> <mode></mode> <lock></lock> <devicelock></devicelock> </switch> <simpleonoff> <state></state> </simpleonoff> <powermeter> <voltage></voltage> <power></power> <energy></energy> </powermeter> <temperature> <celsius></celsius> <offset></offset> </temperature> </device>
If I manually remove this part from the response before the deserialization, everything works fine. The issue seems to be the that it can't parse the empty value to one of the enum values (like State, Mode...). Possible solution could also be a default value?
Besides that: Thanks for this library, really great work :)
The text was updated successfully, but these errors were encountered:
When calling the method "GetDevices" I get empty xml elements for my DECT 200. My guess is that the device is currently unplugged (but still in the list of devices).
The device part of the response looks as follows:
<device identifier="08761 0348868" id="17" functionbitmask="35712" fwversion="04.25" manufacturer="AVM" productname="FRITZ!DECT 200"> <present>0</present> <txbusy>0</txbusy> <name>Lavalampe</name> <switch> <state></state> <mode></mode> <lock></lock> <devicelock></devicelock> </switch> <simpleonoff> <state></state> </simpleonoff> <powermeter> <voltage></voltage> <power></power> <energy></energy> </powermeter> <temperature> <celsius></celsius> <offset></offset> </temperature> </device>
If I manually remove this part from the response before the deserialization, everything works fine. The issue seems to be the that it can't parse the empty value to one of the enum values (like State, Mode...). Possible solution could also be a default value?
Besides that: Thanks for this library, really great work :)
The text was updated successfully, but these errors were encountered: