public async Task <bool> WriteBroadcastPeriod(BluetoothRobotConstants.BROADCAST_PERIOD period) { return(await base.WriteCharacteristicValueAsync(BluetoothRobotConstants.MODULE_PARAMETER_BROADCAST_PERIOD_CHARACTERISTIC_UUID, new byte[] { (byte)period })); }
public Task <bool> SetBTBroadcastPeriod(BluetoothRobotConstants.BROADCAST_PERIOD period) { return(GetService <ModuleParameterService>(BaseService.TYPE.MODULE_PARAMETER).WriteBroadcastPeriod(period)); }