Closed TheBlubb14 closed 5 years ago
I completely missed the tests, sorry. I my lamp has 15046349333641525676 as IeeeAddress. But this address cannot be converted as hexadecimal to UInt64 because it is too big. What's the best way to fix the problem?
Okay, now everything should work as expected. :)
Hello first of all many thanks for this great library. I refactored the IeeAddress because my Ikea Tradfri lamp together with my CC2531 and enabled NetworkSerializer threw an exception.
Instead of the bit shifting in the
SetAddress
the methodBitConverter.GetBytes
contained in the .Net framework is used now. Which should make the code easier to read.I also fixed an OverflowException when converting the string in the constructor to the byte[]. The problem occurred when I serialized my Tradfri lamp using the
JsonNetworkSerializer
and rebooted the network.