Esempio n. 1
0
        /// <summary></summary>
        public void Open()
        {
            if (this.IsConnected)
            {
                return;
            }

            this.llrpClient = new LLRPClient(port: this.port);

            ENUM_ConnectionAttemptStatusType status = ENUM_ConnectionAttemptStatusType.Success;
            bool isSuccessed = this.llrpClient.Open(
                llrp_reader_name: this.host,
                status: out status,
                timeout: this.timeout);

            if (!isSuccessed ||
                status != ENUM_ConnectionAttemptStatusType.Success)
            {
                throw new Exception($"接続失敗. {status.ToString()}");
            }

            this.ResetToFactoryDefault();
            this.EnableImpinjExtetions();

            this.GetReaderConfig();
            this.GetReaderCapabilities();
        }