public async Task Set(byte scheduleId, byte scheduleIdBlock, ScheduleData data, CancellationToken cancellationToken) { if (!await IsSupportScheduleIdBlock(cancellationToken)) { throw new VersionNotSupportedException($"Schedule ID blocks work with class type {Class} greater or equal to {ScheduleIdBlockMinimalProtocolVersion}."); } await Send(new Command(Class, command.Set, data.ToPayload(scheduleId, scheduleIdBlock)), cancellationToken); }
public async Task Set(byte scheduleId, ScheduleData data, CancellationToken cancellationToken) { await Send(new Command(Class, command.Set, data.ToPayload(scheduleId)), cancellationToken); }