Function decode_attribute_json

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

Decode attribute value and return as JSON string

§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