When a codec is dealing with multiple services (custom accessory), there must be a way to discern those in the decode/encode function.
By passing the whole object extendedTopic (when defined as object instead of string), a developer could easily add an attribute identifying different services with the same chars (example: two switches).
When a codec is dealing with multiple services (
custom
accessory), there must be a way to discern those in the decode/encode function.By passing the whole object
extendedTopic
(when defined as object instead of string), a developer could easily add an attribute identifying different services with the same chars (example: two switches).