()
| 524 | // ── Descriptors ───────────────────────────────────────────────────── |
| 525 | |
| 526 | pub async fn test_read_only_descriptor() { |
| 527 | let peripheral = peripheral_finder::find_and_connect().await; |
| 528 | peripheral_finder::reset_peripheral(&peripheral).await; |
| 529 | let descriptor = super::find_descriptor( |
| 530 | &peripheral, |
| 531 | gatt_uuids::DESCRIPTOR_TEST_CHAR, |
| 532 | gatt_uuids::READ_ONLY_DESCRIPTOR, |
| 533 | ); |
| 534 | let value = peripheral.read_descriptor(&descriptor).await.unwrap(); |
| 535 | assert_eq!( |
| 536 | value, |
| 537 | vec![0xDE, 0xAD, 0xBE, 0xEF], |
| 538 | "Read-only descriptor should return fixed value" |
| 539 | ); |
| 540 | peripheral.disconnect().await.unwrap(); |
| 541 | } |
| 542 | |
| 543 | pub async fn test_read_write_descriptor_roundtrip() { |
| 544 | let peripheral = peripheral_finder::find_and_connect().await; |
nothing calls this directly
no test coverage detected