/// <summary> /// /// </summary> public void EnqueueJob(ZWaveJob job) { lock (this._queueLock) { this.JobQueue.AddLast(job); } }
private void GetVersion() { ZWaveJob v = new ZWaveJob(); v.Request = new ZWaveMessage(ZWaveProtocol.MessageType.REQUEST, ZWaveProtocol.Function.GET_VERSION); v.ResponseReceived += ResponseReceived; this._port.EnqueueJob(v); }
public void InjectJob(ZWaveJob job) { lock (this._queueLock) { this.JobQueue.AddFirst(job); } }
private void GetHomeID() { ZWaveJob h = new ZWaveJob(); h.Request = new ZWaveMessage(ZWaveProtocol.MessageType.REQUEST, ZWaveProtocol.Function.MEMORY_GET_ID); h.ResponseReceived += ResponseReceived; this._port.EnqueueJob(h); }