public SetScheduledBellCommand(ulong deviceId, byte number, ScheduledBell value) : base(deviceId) { if (number < 0 || number > ScheduledBell.MAX_SCHEDULED_BELL_SLOT) { throw new ArgumentOutOfRangeException("number", "Must be within 0 to ScheduledBell.MAX_SCHEDULED_BELL_SLOT"); } BuildPayload(SET_SCHEDULED_BELL, value.ToArray(number)); }
public async Task SetScheduledBell(byte number, ScheduledBell value) { await DeviceStream.SendCommand(new SetScheduledBellCommand(DeviceId, number, value)); }