ABNSAM.ABnoteSAM.RetreiveData C# (CSharp) Method

RetreiveData() public method

public RetreiveData ( byte slot ) : string
slot byte
return string
        public string RetreiveData(byte slot)
        {
            string cmd = "8082" + Util.BinToHex(slot) + "0019";
            string resp = Send(cmd);
            if (resp.EndsWith("9000"))
            {
                int len = int.Parse(resp.Substring(0, 2));
                string hex = resp.Substring(2, len * 2);
                return Util.HexToAscii(hex);
            }
            else
            {
                return null;
            }
        }