コード例 #1
0
 public TaskAssociateRequest(
     Byte logicalChannel,
     Byte channelPage,
     MacAddress coordAddr,
     UInt16 coordPanId,
     CapabilityInformation capability,
     SecurityOptions securityOptions,
     AssociateConfirmHandler handler)
     : base(TaskType.AssociateRequest)
 {
     this.logicalChannel  = logicalChannel;
     this.channelPage     = channelPage;
     this.coordAddr       = coordAddr;
     this.coordPanId      = coordPanId;
     this.capability      = capability;
     this.securityOptions = securityOptions;
     this.handler         = handler;
 }
コード例 #2
0
        public void AssociateRequest(
            Byte logicalChannel,
            Byte channelPage,
            MacAddress coordAddr,
            UInt16 coordPanId,
            CapabilityInformation capability,
            SecurityOptions securityOptions,
            AssociateConfirmHandler handler)
        {
            TaskAssociateRequest task = new TaskAssociateRequest(
                logicalChannel,
                channelPage,
                coordAddr,
                coordPanId,
                capability,
                securityOptions,
                handler);

            if (!_taskQueue.Add(task) && handler != null)
            {
                handler.Invoke(this, State.cReservedShortAddr, MacEnum.Congested, new SecurityOptions());
            }
        }
コード例 #3
0
ファイル: Mac.cs プロジェクト: prabby/miniclr
 public void AssociateRequest(
     Byte logicalChannel,
     Byte channelPage,
     MacAddress coordAddr,
     UInt16 coordPanId,
     CapabilityInformation capability,
     SecurityOptions securityOptions,
     AssociateConfirmHandler handler)
 {
     TaskAssociateRequest task = new TaskAssociateRequest(
         logicalChannel,
         channelPage,
         coordAddr,
         coordPanId,
         capability,
         securityOptions,
         handler);
     if (!_taskQueue.Add(task) && handler != null)
     {
         handler.Invoke(this, State.cReservedShortAddr, MacEnum.Congested, new SecurityOptions());
     }
 }
コード例 #4
0
ファイル: TaskTypes.cs プロジェクト: koson/.NETMF_for_LPC17xx
 public TaskAssociateRequest(
     Byte logicalChannel,
     Byte channelPage,
     MacAddress coordAddr,
     UInt16 coordPanId,
     CapabilityInformation capability,
     SecurityOptions securityOptions,
     AssociateConfirmHandler handler)
     : base(TaskType.AssociateRequest)
 {
     this.logicalChannel = logicalChannel;
     this.channelPage = channelPage;
     this.coordAddr = coordAddr;
     this.coordPanId = coordPanId;
     this.capability = capability;
     this.securityOptions = securityOptions;
     this.handler = handler;
 }