Mr-Markus / ZigbeeNet

A .NET Standard library for working with ZigBee
Eclipse Public License 1.0
131 stars 47 forks source link

Normalize attributes when restored via the data store #114

Closed spudwebb closed 3 years ago

spudwebb commented 4 years ago

We need ZclAttributeNormalizer class to normalise data during the initialisation from a ZclAttributeDao. This is to protect the framework from serialisation systems that may not restore the attribute data using the correct class. Moreover I suggest that we use Convert.ToXXXX in NormalizeZclData for each datatype

see https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/665