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; } }
void iserver_NetDataReceived(INetPortDevice device, NetPortSerialDataEventArgs args) { OnDataReceived(args.SerialData); // throw new NotImplementedException(); }
void port_NetDataReceived(INetPortDevice device, NetPortSerialDataEventArgs args) { // ILiveDebug.Instance.WriteLine("movie:" + ILiveUtil.ToHexString(Encoding.GetEncoding(28591).GetBytes(args.SerialData))); }