Beispiel #1
0
 public static void OnWsdeUsbComed(WsdePort wsdePort)
 {
     wsdePort.OnDataCome += new OnDataComeHandler(OnDataComeHandler2);
     wsdePort.SetAccessPasswords(new List <ulong> {
         1, 2, 3, 4
     });
     Thread.Sleep(1000);
     wsdePort.InitConf(new ConfAction()
     {
         channel = 1, date = DateTime.Now, frequency = FrequencyEnum.dBM0
     });
     Thread.Sleep(1000);
     wsdePort.UpdateDynamicConf();
     Thread.Sleep(1000);
     wsdePort.subAnswerDic.SetAnswer(2, "A");
     wsdePort.subAnswerDic.SetAnswer(3, "B");
     wsdePort.PushAnswer();
 }
Beispiel #2
0
        /// <summary>
        /// 设置密码表 即子机可以通过该密码与主机通讯
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            var secret = SecretText.Text.Replace("\r", "").Split('\n').ToList();

            post.SetAccessPasswords(secret.ConvertAll(k => Convert.ToUInt64(k)));
        }
Beispiel #3
0
 public void OnSetCipherList()
 {
     post.SetAccessPasswords(_cipherList.Where(k => !String.IsNullOrWhiteSpace(k)).ToList().ConvertAll(k => Convert.ToUInt64(k)));
 }