pub async fn request_battery_level(&self) -> Result<(), BluetoothError> {
        let command = [
            REQUEST_PROPERTY_COMMAND,
            BATTERY_LEVEL_PROPERTY_ID,
            0,
            0,
            0,
            0,
        ];
        self.bt_session
            .write_characteristic_value(&self.setting_data_characteristic, command)
            .await
    }
/// Request that the device report its current battery level. The result will come as a
/// `SettingResult` event.
Request that the device report its current battery level. The result will come as a
`SettingResult` event.
Request that the device report its current battery level . The result will come as a ` SettingResult ` event .
pub async fn request_battery_level(&self) -> Result<(), BluetoothError> {
        let command = [
            REQUEST_PROPERTY_COMMAND,
            BATTERY_LEVEL_PROPERTY_ID,
            0,
            0,
            0,
            0,
        ];
        self.bt_session
            .write_characteristic_value(&self.setting_data_characteristic, command)
            .await
    }
pub async fn request_battery_level ( & self ) -> Result < ( ) , BluetoothError > { let command = [ REQUEST_PROPERTY_COMMAND , BATTERY_LEVEL_PROPERTY_ID , 0 , 0 , 0 , 0 , ] ; self . bt_session . write_characteristic_value ( & self . setting_data_characteristic , command ) . await }
Request that the device report its current battery level.
Request that the device report its current battery level .
&self
&self