Implement SavePairRecord

This commit is contained in:
Jackson Coxson
2025-09-03 19:26:11 -06:00
parent d463a53f04
commit ca56575c6c
2 changed files with 34 additions and 5 deletions

View File

@@ -74,10 +74,13 @@ async fn main() {
.expect("Pairing file test failed");
// Add the UDID (jitterbug spec)
pairing_file.udid = Some(dev.udid);
pairing_file.udid = Some(dev.udid.clone());
let pairing_file = pairing_file.serialize().expect("failed to serialize");
println!(
"{}",
String::from_utf8(pairing_file.serialize().unwrap()).unwrap()
);
println!("{}", String::from_utf8(pairing_file.clone()).unwrap());
// Save with usbmuxd
u.save_pair_record(dev.device_id, &dev.udid, pairing_file)
.await
.expect("no save");
}