Exemplo n.º 1
0
 public TaskPollRequest(
     MacAddress coordAddr,
     UInt16 coordPanId,
     SecurityOptions securityOptions,
     PollConfirmHandler handler)
     : base(TaskType.PollRequest)
 {
     this.coordAddr       = coordAddr;
     this.coordPanId      = coordPanId;
     this.securityOptions = securityOptions;
     this.handler         = handler;
 }
Exemplo n.º 2
0
        public void PollRequest(
            MacAddress coordAddr,
            UInt16 coordPanId,
            SecurityOptions securityOptions,
            PollConfirmHandler handler)
        {
            TaskPollRequest task = new TaskPollRequest(
                coordAddr,
                coordPanId,
                securityOptions,
                handler);

            if (!_taskQueue.Add(task) && handler != null)
            {
                handler.Invoke(this, MacEnum.Congested);
            }
        }
Exemplo n.º 3
0
 public void PollRequest(
     MacAddress coordAddr,
     UInt16 coordPanId,
     SecurityOptions securityOptions,
     PollConfirmHandler handler)
 {
     TaskPollRequest task = new TaskPollRequest(
         coordAddr,
         coordPanId,
         securityOptions,
         handler);
     if (!_taskQueue.Add(task) && handler != null)
     {
         handler.Invoke(this, MacEnum.Congested);
     }
 }
Exemplo n.º 4
0
 public TaskPollRequest(
     MacAddress coordAddr,
     UInt16 coordPanId,
     SecurityOptions securityOptions,
     PollConfirmHandler handler)
     : base(TaskType.PollRequest)
 {
     this.coordAddr = coordAddr;
     this.coordPanId = coordPanId;
     this.securityOptions = securityOptions;
     this.handler = handler;
 }