Exemplo n.º 1
0
        /// <summary>
        /// カード情報取得ハンドラー
        /// </summary>
        /// <param name="sender">イベント元</param>
        /// <param name="e">パラメーター</param>
        private void ReadedHandler(object sender, CardReadedEventArgs e)
        {
            Console.WriteLine("ID = " + e.ID);
            //Console.WriteLine("PM = " + e.PM);
            //Console.WriteLine("SYS = " + e.SYS);

            this.gpio.Mode = 1;
            this.KintaiSend(e.ID);
            this.gpio.Mode = 0;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 読み取りイベントハンドラー
        /// </summary>
        /// <param name="sender">イベント元</param>
        /// <param name="e">パラメーター</param>
        private void OutputDataReceivedHandler(object sender, System.Diagnostics.DataReceivedEventArgs e)
        {
            Console.WriteLine("FelicaReader::OutputDataReceivedHandler()");
            Console.WriteLine(e.Data);
            CardReadedEventArgs args = new CardReadedEventArgs();

            args.ID = this.GetID(e.Data);
            args.PM = this.GetPM(e.Data);
            args.SYS = this.GetSYS(e.Data);

            this.Readed(this, args);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 読み取りテスト
 /// </summary>
 /// <param name="sender">イベント元</param>
 /// <param name="e">パラメーター</param>
 static void ReadedHandler(object sender, CardReadedEventArgs e)
 {
     Console.WriteLine("ID = " + e.ID);
     Console.WriteLine("PM = " + e.PM);
     Console.WriteLine("SYS = " + e.SYS);
 }