Function decode_attribute_json

Source
pub fn decode_attribute_json(
    cluster_id: u32,
    attribute_id: u32,
    tlv_value: &TlvItemValue,
) -> String
Expand description

Main dispatcher function for decoding attributes to JSON

This function routes to the appropriate cluster-specific decoder based on cluster ID.

§Parameters

  • cluster_id - The cluster identifier
  • attribute_id - The attribute identifier
  • tlv_value - The TLV value to decode

§Returns

JSON string representation of the decoded value or error message