ABNSAM.ABnoteSAM.StoreData C# (CSharp) Method

StoreData() public method

public StoreData ( string data, byte slot, bool overwrite ) : string
data string
slot byte
overwrite bool
return string
        public string StoreData(string data, byte slot, bool overwrite)
        {
            if (data.Length > 12)
            {
                throw new Exception("Data stored in applet may not be more than 12 chars length");
            }

            string cmd = ("8081" + Util.BinToHex(slot) + (overwrite ? "01":"00") + "19" + Util.AddHexLength(Util.AsciiToHex(data))).PadRight(60, '0');
            return Send(cmd);
        }