コード例 #1
0
 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));
 }
コード例 #2
0
 public async Task SetScheduledBell(byte number, ScheduledBell value)
 {
     await DeviceStream.SendCommand(new SetScheduledBellCommand(DeviceId, number, value));
 }