()
| 238 | } |
| 239 | |
| 240 | pub async fn test_write_with_response() { |
| 241 | use btleplug::api::WriteType; |
| 242 | |
| 243 | let peripheral = peripheral_finder::find_and_connect().await; |
| 244 | peripheral_finder::reset_peripheral(&peripheral).await; |
| 245 | let char = peripheral_finder::find_characteristic(&peripheral, gatt_uuids::WRITE_WITH_RESPONSE); |
| 246 | let data = vec![0xAA, 0xBB, 0xCC]; |
| 247 | peripheral |
| 248 | .write(&char, &data, WriteType::WithResponse) |
| 249 | .await |
| 250 | .unwrap(); |
| 251 | peripheral.disconnect().await.unwrap(); |
| 252 | } |
| 253 | |
| 254 | pub async fn test_write_without_response() { |
| 255 | use btleplug::api::WriteType; |
nothing calls this directly
no test coverage detected