예제 #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;
 }
예제 #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);
            }
        }
예제 #3
0
파일: Mac.cs 프로젝트: prabby/miniclr
 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);
     }
 }
예제 #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;
 }