Exemplo n.º 1
0
        public void DeleteRoSpec(int roSpectID)
        {
            Console.WriteLine("Stopping RoSpec\n");
            MSG_DELETE_ROSPEC msg = new MSG_DELETE_ROSPEC();
            MSG_ERROR_MESSAGE msg_err;

            msg.ROSpecID = (uint)roSpectID; // this better match the RoSpec we created above
            MSG_DELETE_ROSPEC_RESPONSE rsp = reader.DELETE_ROSPEC(msg, out msg_err, 12000);

            if (rsp != null)
            {
                if (rsp.LLRPStatus.StatusCode != ENUM_StatusCode.M_Success)
                {
                    Console.WriteLine(rsp.LLRPStatus.StatusCode.ToString());
                    reader.Close();
                    return;
                }
            }
            else if (msg_err != null)
            {
                Console.WriteLine(msg_err.ToString());
                reader.Close();
                return;
            }
            else
            {
                Console.WriteLine("STOP_ROSPEC Command Timed out\n");
                reader.Close();
                return;
            }
        }
Exemplo n.º 2
0
        static void Delete_RoSpec()
        {
            MSG_DELETE_ROSPEC msg = new MSG_DELETE_ROSPEC();

            msg.ROSpecID = 0;
            MSG_ERROR_MESSAGE msg_err;

            MSG_DELETE_ROSPEC_RESPONSE rsp =
                readerR.DELETE_ROSPEC(msg, out msg_err, 2000);
        }
Exemplo n.º 3
0
        public static Result <MSG_DELETE_ROSPEC_RESPONSE> Delete_RoSpec(this LLRPClient reader, uint id)
        {
            var message = new MSG_DELETE_ROSPEC()
            {
                ROSpecID = id
            };
            var response = reader.DELETE_ROSPEC(message, out var error, 2000);

            return(new Result <MSG_DELETE_ROSPEC_RESPONSE>(response, error));
        }
Exemplo n.º 4
0
        public static void Delete_RoSpec(LLRPClient reader)
        {
            var msg = new MSG_DELETE_ROSPEC {
                ROSpecID = 0
            };
            MSG_ERROR_MESSAGE errorMessage;

            var response = reader.DELETE_ROSPEC(msg, out errorMessage, 2000);

            ResponseWriteLine(response, errorMessage);
        }
Exemplo n.º 5
0
        private void Delete_RoSpec()
        {
            MSG_DELETE_ROSPEC msg = new MSG_DELETE_ROSPEC();

            msg.ROSpecID = 0;

            MSG_DELETE_ROSPEC_RESPONSE rsp = reader.DELETE_ROSPEC(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!";
            }
        }
Exemplo n.º 6
0
        /// <summary>
        /// Deletes the ROSpec at the Reader corresponding to ROSpecID passed in this message.
        /// </summary>
        public void Delete_RoSpec()
        {
            MSG_DELETE_ROSPEC msg = new MSG_DELETE_ROSPEC();

            msg.ROSpecID = 0;   // Deletes ROSpec for the given id

            MSG_DELETE_ROSPEC_RESPONSE rsp = client.DELETE_ROSPEC(msg, out msg_err, 3000);

            if (rsp != null)
            {
                //textBox2.Text = rsp.ToString();
                WriteMessage(rsp.ToString(), "Delete_RoSpec");
            }
            else if (msg_err != null)
            {
                WriteMessage("Delete_RoSpec " + msg_err.ToString());
            }
            else
            {
                WriteMessage("Delete_RoSpec Command time out!");
            }
        }
Exemplo n.º 7
0
        private bool Delete_RoSpec()
        {
            MSG_DELETE_ROSPEC msg = new MSG_DELETE_ROSPEC();

            msg.ROSpecID = 0;

            MSG_DELETE_ROSPEC_RESPONSE rsp = reader.DELETE_ROSPEC(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);
            }
        }