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);
|
tlvs.insert(tlv_type, tlv_data);
|
||||||
}
|
}
|
||||||
log::info!("Decoded TLV: {}", tlvs.as_tlv_string());
|
|
||||||
Ok(tlvs)
|
Ok(tlvs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,9 +36,11 @@ pub async fn metrics(state: &State<Mutex<HashMap<String, ConnectedDevice>>>) ->
|
||||||
}
|
}
|
||||||
s.push_str(
|
s.push_str(
|
||||||
format!(
|
format!(
|
||||||
"{}{{hub=\"{}\",accessory=\"{}.{}\",service=\"{}.{}.{}\"}} {}\n",
|
"{}{{hub=\"{}\",service_type=\"{}\",accessory_name=\"{}\",accessory=\"{}.{}\",service=\"{}.{}.{}\"}} {}\n",
|
||||||
characteristic.characteristic_type,
|
characteristic.characteristic_type,
|
||||||
name,
|
name,
|
||||||
|
service.service_type,
|
||||||
|
accessory.name,
|
||||||
name,
|
name,
|
||||||
aid,
|
aid,
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in a new issue