()
| 252 | } |
| 253 | |
| 254 | pub async fn test_write_without_response() { |
| 255 | use btleplug::api::WriteType; |
| 256 | |
| 257 | let peripheral = peripheral_finder::find_and_connect().await; |
| 258 | peripheral_finder::reset_peripheral(&peripheral).await; |
| 259 | let char = |
| 260 | peripheral_finder::find_characteristic(&peripheral, gatt_uuids::WRITE_WITHOUT_RESPONSE); |
| 261 | let data = vec![0x11, 0x22, 0x33]; |
| 262 | peripheral |
| 263 | .write(&char, &data, WriteType::WithoutResponse) |
| 264 | .await |
| 265 | .unwrap(); |
| 266 | peripheral.disconnect().await.unwrap(); |
| 267 | } |
| 268 | |
| 269 | pub async fn test_write_without_response_burst() { |
| 270 | use btleplug::api::WriteType; |
nothing calls this directly
no test coverage detected