Allow read for auto button

This commit is contained in:
Daniel Mayfield
2025-09-16 22:31:37 -04:00
parent 01dd918f47
commit efd3277966

View File

@ -185,7 +185,7 @@ impl BleServer {
// --- Button Auto Bluetooth GATT -------------------------------------------------------- // --- Button Auto Bluetooth GATT --------------------------------------------------------
let button_auto = lift_service.lock().create_characteristic( let button_auto = lift_service.lock().create_characteristic(
UUID_BUTTON_AUTO, UUID_BUTTON_AUTO,
NimbleProperties::WRITE, NimbleProperties::WRITE| NimbleProperties::READ,
); );
button_auto.lock().set_value(&[0]) button_auto.lock().set_value(&[0])
.on_write(closure!(clone sender, |args: &mut OnWriteArgs| { .on_write(closure!(clone sender, |args: &mut OnWriteArgs| {