Reset the test peripheral to its default state.
(peripheral: &Peripheral)
| 168 | |
| 169 | /// Reset the test peripheral to its default state. |
| 170 | pub async fn reset_peripheral(peripheral: &Peripheral) { |
| 171 | send_control_command(peripheral, gatt_uuids::CMD_RESET_STATE).await; |
| 172 | // Brief pause to let the peripheral process the reset |
| 173 | time::sleep(Duration::from_millis(100)).await; |
| 174 | } |
| 175 | |
| 176 | /// Find a characteristic by UUID from the peripheral's discovered characteristics. |
| 177 | pub fn find_characteristic( |