Fixed copy-paste errors.
This commit is contained in:
@ -192,7 +192,7 @@ impl BleServer {
|
|||||||
on_bluetooth_cmd(&sender, args, Commands::BluetoothAuto {data: Button::Released})
|
on_bluetooth_cmd(&sender, args, Commands::BluetoothAuto {data: Button::Released})
|
||||||
}));
|
}));
|
||||||
let button_auto_name = button_auto.lock().create_descriptor(BleUuid::Uuid16(0x2901), DescriptorProperties::READ);
|
let button_auto_name = button_auto.lock().create_descriptor(BleUuid::Uuid16(0x2901), DescriptorProperties::READ);
|
||||||
button_auto_name.lock().set_value(b"Command Learn");
|
button_auto_name.lock().set_value(b"Command Auto");
|
||||||
// --- Device Name Bluetooth GATT --------------------------------------------------------
|
// --- Device Name Bluetooth GATT --------------------------------------------------------
|
||||||
let device_name = lift_service.lock().create_characteristic(
|
let device_name = lift_service.lock().create_characteristic(
|
||||||
UUID_BLUETOOTH_NAME,
|
UUID_BLUETOOTH_NAME,
|
||||||
@ -214,21 +214,21 @@ impl BleServer {
|
|||||||
UUID_STATUS_MOTOR,
|
UUID_STATUS_MOTOR,
|
||||||
NimbleProperties::READ | NimbleProperties::INDICATE,
|
NimbleProperties::READ | NimbleProperties::INDICATE,
|
||||||
);
|
);
|
||||||
let status_motor_name = status_limits.lock().create_descriptor(BleUuid::Uuid16(0x2901), DescriptorProperties::READ);
|
let status_motor_name = status_motor.lock().create_descriptor(BleUuid::Uuid16(0x2901), DescriptorProperties::READ);
|
||||||
status_motor_name.lock().set_value(b"Status of motors");
|
status_motor_name.lock().set_value(b"Status of motors");
|
||||||
// --- Status Status Bluetooth GATT --------------------------------------------------------
|
// --- Status Status Bluetooth GATT --------------------------------------------------------
|
||||||
let status_status = lift_service.lock().create_characteristic(
|
let status_status = lift_service.lock().create_characteristic(
|
||||||
UUID_STATUS_STATUS,
|
UUID_STATUS_STATUS,
|
||||||
NimbleProperties::READ | NimbleProperties::INDICATE,
|
NimbleProperties::READ | NimbleProperties::INDICATE,
|
||||||
);
|
);
|
||||||
let status_status_name = status_limits.lock().create_descriptor(BleUuid::Uuid16(0x2901), DescriptorProperties::READ);
|
let status_status_name = status_status.lock().create_descriptor(BleUuid::Uuid16(0x2901), DescriptorProperties::READ);
|
||||||
status_status_name.lock().set_value(b"Status flags");
|
status_status_name.lock().set_value(b"Status flags");
|
||||||
// --- Status Reason Bluetooth GATT --------------------------------------------------------
|
// --- Status Reason Bluetooth GATT --------------------------------------------------------
|
||||||
let status_reason = lift_service.lock().create_characteristic(
|
let status_reason = lift_service.lock().create_characteristic(
|
||||||
UUID_STATUS_REASON,
|
UUID_STATUS_REASON,
|
||||||
NimbleProperties::READ | NimbleProperties::INDICATE,
|
NimbleProperties::READ | NimbleProperties::INDICATE,
|
||||||
);
|
);
|
||||||
let status_reason_name = status_limits.lock().create_descriptor(BleUuid::Uuid16(0x2901), DescriptorProperties::READ);
|
let status_reason_name = status_reason.lock().create_descriptor(BleUuid::Uuid16(0x2901), DescriptorProperties::READ);
|
||||||
status_reason_name.lock().set_value(b"Status reason");
|
status_reason_name.lock().set_value(b"Status reason");
|
||||||
|
|
||||||
// Default to not pairable
|
// Default to not pairable
|
||||||
|
|||||||
Reference in New Issue
Block a user