Ejemplo n.º 1
0
        public void Delete_AccessSpec()
        {
            MSG_ERROR_MESSAGE     msg_err;
            MSG_DELETE_ACCESSSPEC msg = new MSG_DELETE_ACCESSSPEC();

            msg.AccessSpecID = 0;
            // Delete all AccessSpecs
            MSG_DELETE_ACCESSSPEC_RESPONSE rsp =
                reader.DELETE_ACCESSSPEC(msg, out msg_err, 2000);

            if (rsp != null)
            {
                // Success
                Console.WriteLine(rsp.ToString());
            }
            else if (msg_err != null)
            {
                // Error
                Console.WriteLine(msg_err.ToString());
            }
            else
            {
                // Timeout
                Console.WriteLine("Timeout Error.");
            }
        }
Ejemplo n.º 2
0
        public static Result <MSG_DELETE_ACCESSSPEC_RESPONSE> Delete_AccessSpec(this LLRPClient reader)
        {
            var message = new MSG_DELETE_ACCESSSPEC()
            {
                AccessSpecID = 431
            };

            var response = reader.DELETE_ACCESSSPEC(message, out var error, 2000);

            return(new Result <MSG_DELETE_ACCESSSPEC_RESPONSE>(response, error));
        }
Ejemplo n.º 3
0
        private void DELETE_ACCESSSPEC()
        {
            MSG_DELETE_ACCESSSPEC msg = new MSG_DELETE_ACCESSSPEC();

            msg.AccessSpecID = 1001;

            MSG_DELETE_ACCESSSPEC_RESPONSE rsp = reader.DELETE_ACCESSSPEC(msg, out msg_err, 3000);

            if (rsp != null)
            {
                textBox2.Text = rsp.ToString();
            }
            else if (msg_err != null)
            {
                textBox2.Text = msg_err.ToString();
            }
            else
            {
                textBox2.Text = "Command time out!";
            }
        }
Ejemplo n.º 4
0
        public void DELETE_ACCESSSPEC()
        {
            MSG_DELETE_ACCESSSPEC msg = new MSG_DELETE_ACCESSSPEC();

            msg.AccessSpecID = 1001;

            MSG_DELETE_ACCESSSPEC_RESPONSE rsp = client.DELETE_ACCESSSPEC(msg, out msg_err, 3000);

            if (rsp != null)
            {
                //textBox2.Text = rsp.ToString() + "\n";
                WriteMessage(rsp.ToString(), "Delete_AccessSpec");
            }
            else if (msg_err != null)
            {
                readerMgr.AppendToDebugTextBox("Delete_AccessSpec " + msg_err.ToString() + "\n");
            }
            else
            {
                readerMgr.AppendToDebugTextBox("Delete_AccessSpec " + "Command time out!" + "\n");
            }
        }
Ejemplo n.º 5
0
        private bool DELETE_ACCESSSPEC()
        {
            MSG_DELETE_ACCESSSPEC msg = new MSG_DELETE_ACCESSSPEC();

            msg.AccessSpecID = 1001;

            MSG_DELETE_ACCESSSPEC_RESPONSE rsp = reader.DELETE_ACCESSSPEC(msg, out msg_err, 12000);

            if (rsp != null)
            {
                //return rsp.ToString();
                return(true);
            }
            else if (msg_err != null)
            {
                //return msg_err.ToString();
                return(false);
            }
            else
            {
                //return "Command time out!";
                return(false);
            }
        }