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);
        }
    }