BluetoothRobotControlLib.Common.Sevices.BatteryLevelService.ReadBatteryLevel C# (CSharp) Method

ReadBatteryLevel() public method

public ReadBatteryLevel ( ) : Task
return Task
        public async Task<int> ReadBatteryLevel()
        {
            byte[] data = await base.ReadChacateristicValueAsync(BluetoothRobotConstants.BATTERY_LEVEL_REPORT_CHARACTERISTIC_UUID);
            return BaseService.ConvertIntFromBytes(data);
        }
    }