Beispiel #1
0
        public static void CallBack(CmdChannel type, uint cmdid, uint parser, uint context)
        {
            ArrayList list  = new ArrayList();
            string    tatal = type.ToString() + "; " + (ProtocolEnum)cmdid;          //0x" + cmdid.ToString("x"); // + ";" + parser.ToString () + ";" + context.ToString ();

            Debug.Log("====Unity==== callback:" + tatal);
            YunvaMsgBase.GetMsg(cmdid, (object)parser);
        }
        protected void PacketChannel(byte channel, byte command, byte[] aPacket)
        {
            if (SigReceived)
            {
                CmdChannel?.Invoke(channel, command, aPacket);
            }

            WaitForMessage();
        }
Beispiel #3
0
 private static extern int YVIM_SendCmd(CmdChannel type, uint cmdid, uint parser);
Beispiel #4
0
 public int YV_SendCmd(CmdChannel type, uint cmdid, uint parser)
 {
     return(YVIM_SendCmd(type, cmdid, parser));
 }