コード例 #1
0
            public static void readStr(object sender, AtComm.PortReceviceEventArgs e)
            {
                AtComm atComm = (AtComm)sender;

                if (e.ReceviceStr.Length > 0)
                {
                    if (atComm.hopeStr.ToUpper() != e.ReceviceStr.ToUpper())
                    {
                        if (e.ReceviceStr.StartsWith(atComm.sendStr))
                        {
                            atComm.tempStr += e.ReceviceStr;
                        }
                    }
                    else
                    {
                        Console.WriteLine("True");
                    }
                }
            }
コード例 #2
0
 private void AtComm_PortRecevice(object sender, AtComm.PortReceviceEventArgs e)
 {
     Console.WriteLine("atCommEvent:" + e.ReceviceStr);
 }