public async Task <bool> WriteTransmitPower(BluetoothRobotConstants.TRANSMIT_POWER power) { return(await base.WriteCharacteristicValueAsync(BluetoothRobotConstants.MODULE_PARAMETER_TRANSMIT_POWER_CHARACTERISTIC_UUID, new byte[] { (byte)power })); }
public Task <bool> SetBTTransmitPower(BluetoothRobotConstants.TRANSMIT_POWER power) { return(GetService <ModuleParameterService>(BaseService.TYPE.MODULE_PARAMETER).WriteTransmitPower(power)); }