Beispiel #1
0
        internal static IDCardActionResult ReadMsg(int port, bool ifOpen, string cardDataFilePath)
        {
            return(ExecInteropFunction(() =>
            {
                SynjonesIDCardData idCardData = new SynjonesIDCardData();
                var retCode = SynjonesIDCardInterop.ReadMsg(port, GetIfOpenCode(ifOpen), ref idCardData);

                if (IsRetSuccess(retCode))
                {
                    IOHelper.WriteToFileSerializeByJson(cardDataFilePath, idCardData);
                }

                return retCode;
            }));
        }
Beispiel #2
0
 internal static extern int ReadMsg(int iPort, int iIfOpen, ref SynjonesIDCardData pIDCardData);