BluetoothRobotControlLib.Common.Sevices.BatteryLevelService.ReadBatteryLevel C# (CSharp) Метод

ReadBatteryLevel() публичный Метод

public ReadBatteryLevel ( ) : Task
Результат Task
        public async Task<int> ReadBatteryLevel()
        {
            byte[] data = await base.ReadChacateristicValueAsync(BluetoothRobotConstants.BATTERY_LEVEL_REPORT_CHARACTERISTIC_UUID);
            return BaseService.ConvertIntFromBytes(data);
        }
    }