Exemplo n.º 1
0
        void client_DebugDataReceived(INetPortDevice device, NetPortSerialDataEventArgs args)
        {
            switch (args.SerialData)
            {
            case "t1":
                //  this.logic.light.LivingAllOn();
                break;

            case "t2":
                // this.logic.light.LivingAllOff();

                break;

            case "t3":
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
 void iserver_NetDataReceived(INetPortDevice device, NetPortSerialDataEventArgs args)
 {
     OnDataReceived(args.SerialData);
     //  throw new NotImplementedException();
 }
Exemplo n.º 3
0
 void port_NetDataReceived(INetPortDevice device, NetPortSerialDataEventArgs args)
 {
     //   ILiveDebug.Instance.WriteLine("movie:" + ILiveUtil.ToHexString(Encoding.GetEncoding(28591).GetBytes(args.SerialData)));
 }