some changes (lol)

This commit is contained in:
Alex Janka 2024-02-25 09:34:27 +11:00
parent 43c76585bc
commit 878521fcfb
2 changed files with 4 additions and 2 deletions

View file

@ -101,7 +101,7 @@ pub fn decode(data: &[u8]) -> Result<HashMap<u8, Vec<u8>>, TlvCodecError> {
};
tlvs.insert(tlv_type, tlv_data);
}
log::info!("Decoded TLV: {}", tlvs.as_tlv_string());
Ok(tlvs)
}

View file

@ -36,9 +36,11 @@ pub async fn metrics(state: &State<Mutex<HashMap<String, ConnectedDevice>>>) ->
}
s.push_str(
format!(
"{}{{hub=\"{}\",accessory=\"{}.{}\",service=\"{}.{}.{}\"}} {}\n",
"{}{{hub=\"{}\",service_type=\"{}\",accessory_name=\"{}\",accessory=\"{}.{}\",service=\"{}.{}.{}\"}} {}\n",
characteristic.characteristic_type,
name,
service.service_type,
accessory.name,
name,
aid,
name,