some changes (lol)
This commit is contained in:
parent
43c76585bc
commit
878521fcfb
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue