{"id":17229,"date":"2025-04-18T23:39:18","date_gmt":"2025-04-18T15:39:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/17229.html"},"modified":"2025-04-18T23:39:18","modified_gmt":"2025-04-18T15:39:18","slug":"qmodbustcpclient-%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%96%ad%e5%bc%80%e5%bc%95%e8%b5%b7%e7%9a%84%e7%a8%8b%e5%ba%8f%e5%b4%a9%e6%ba%83","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/17229.html","title":{"rendered":"QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83"},"content":{"rendered":"<p>\u6700\u8fd1\u4f7f\u7528QModbusTCPClient \u4e0e\u4e00\u5957\u8bbe\u5907\u901a\u4fe1&#xff0c;\u6709\u4e00\u4e2aQTimer\u9891\u7e41\u7684\u901a\u8fc7\u8bfb\u53d6\u8bbe\u5907\u5bc4\u5b58\u5668\u3002\u7a0b\u5e8f\u8fd0\u884c\u826f\u597d&#xff0c;\u4f46\u662f\u6709\u4e2a\u95ee\u9898&#xff1a;\u6b63\u5e38\u8fdb\u884c\u4e2d\u8bbe\u5907\u65ad\u7535\u4e86&#xff0c;\u6574\u4e2a\u7a0b\u5e8f\u90fd\u4f1a\u5d29\u6e83\u3002\u89e3\u51b3\u8fc7\u7a0b\u5982\u4e0b&#xff1a;<\/p>\n<h2>1.\u5931\u8d25\u65b9\u6848\u4e00<\/h2>\n<p>\u5728QModbusTCPClient\u7684errorOccurred&#xff08;&#xff09;\u4fe1\u53f7\u4e2d\u5224\u65ad\u9519\u8bef\u540e\u53ca\u65f6\u5173\u95edQTimer,\u907f\u514d\u51fa\u9519\u4e4b\u540e\u8fd8\u8981\u9891\u7e41\u8bbf\u95ee\u3002<\/p>\n<p>\u6b64\u65b9\u6848\u5931\u8d25&#xff0c;\u95ee\u9898\u4e0d\u5728\u8fd9\u91cc\u3002<\/p>\n<h2>2.\u5931\u8d25\u65b9\u6848\u4e8c<\/h2>\n<p>m_reply&#061; m_modbus-&gt;sendReadRequest(m_unit[1], m_outputID);<br \/>\n        if(m_reply &amp;&amp; !m_reply-&gt;isFinished())<br \/>\n        {<br \/>\n            connect(m_reply, &amp;QModbusReply::finished, [this]() {<br \/>\n                if(m_reply-&gt;error() &#061;&#061; QModbusDevice::NoError)<br \/>\n                {<br \/>\n                    m_outputs &#061; m_reply-&gt;result().values();<br \/>\n                }<br \/>\n                m_modbus-&gt;disconnect(SIGNAL(timeoutChanged(int)), 0, 0);<br \/>\n                delete m_reply;<br \/>\n                m_reply &#061; nullptr;<br \/>\n            });<br \/>\n        } <\/p>\n<p>\u4e00\u4e2a\u5178\u578b\u7684\u5e94\u7528\u5982\u4e0a\u3002\u5bf9\u00a0QModbusTCPClient\u53d1\u9001\u8bfb\u5199\u8bf7\u6c42\u540e&#xff0c;\u4f1a\u5f97\u5230\u4e00\u4e2aQModbusReply\u6307\u9488&#xff0c;\u6839\u636eQModbusReply\u7684finished\u4fe1\u53f7\u5224\u65ad\u8bf7\u6c42\u7ed3\u679c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u662f\u5f02\u6b65\u7684&#xff0c;\u6240\u4ee5\u4e0a\u9762\u7684\u53ca\u65f6\u505c\u6b62QTimer\u5e76\u4e0d\u80fd\u771f\u7684\u201c\u53ca\u65f6\u201d\u505c\u6b62\u3002<\/p>\n<p>\u5728finished\u7684\u54cd\u5e94\u69fd\u51fd\u6570\u4e2d\u5224\u65ad\u4e00\u4e0berror\u72b6\u6001&#xff0c;\u518d\u8fdb\u884c\u540e\u9762\u7684\u64cd\u4f5c&#xff0c;\u4ecd\u7136\u5931\u8d25\u3002<\/p>\n<h2>3.\u65b9\u6848\u4e09&#xff08;\u6709\u70b9\u7709\u76ee&#xff09;<\/h2>\n<p>m_reply&#061; m_modbus-&gt;sendReadRequest(m_unit[1], m_outputID);<br \/>\n        if(m_reply &amp;&amp; !m_reply-&gt;isFinished())<br \/>\n        {<br \/>\n            connect(m_reply, &amp;QModbusReply::finished, [this]() {<\/p>\n<p>            });<br \/>\n        } <\/p>\n<p>\u76f4\u63a5\u628a\u8fd9\u4e2a\u51fd\u6570\u4f53\u53d8\u6210\u7a7a\u7684&#xff0c;\u4ec0\u4e48\u4e5f\u4e0d\u505a&#xff0c;\u53d1\u73b0\u7a0b\u5e8f\u4e0d\u5d29\u6e83\u4e86\u3002\u95ee\u9898\u8303\u56f4\u6210\u529f\u7f29\u5c0f\u3002\u4e8e\u662f\u5bf9\u51fd\u6570\u4f53\u4e2d\u7684\u9010\u884c\u6253\u5370&#xff0c;\u770b\u770b\u5230\u5e95\u54ea\u4e00\u6b65\u5d29\u6e83\u7684\u3002<\/p>\n<p>m_reply&#061; m_modbus-&gt;sendReadRequest(m_unit[1], m_outputID);<br \/>\n        if(m_reply &amp;&amp; !m_reply-&gt;isFinished())<br \/>\n        {<br \/>\n            connect(m_reply, &amp;QModbusReply::finished, [this]() {<br \/>\nqDebug()&lt;&lt;1;<br \/>\n                if(m_reply-&gt;error() &#061;&#061; QModbusDevice::NoError)<br \/>\n                {<br \/>\nqDebug()&lt;&lt;2;<br \/>\n                    m_outputs &#061; m_reply-&gt;result().values();<br \/>\n                }<br \/>\nqDebug()&lt;&lt;3;<br \/>\n                m_modbus-&gt;disconnect(SIGNAL(timeoutChanged(int)), 0, 0);<br \/>\nqDebug()&lt;&lt;4;<br \/>\n                delete m_reply;<br \/>\nqDebug()&lt;&lt;5;<br \/>\n                m_reply &#061; nullptr;<br \/>\n            });<br \/>\n        } <\/p>\n<p>\u7ed3\u679c\u53d1\u73b0\u53ea\u8981\u5bf9m_reply\u8fdb\u884c\u8bbf\u95ee&#xff0c;\u5c31\u4f1a\u5d29\u6e83\u3002\u00a0<\/p>\n<h2>4.\u65b9\u6848\u56db&#xff08;\u90e8\u5206\u89e3\u51b3&#xff09;<\/h2>\n<p>\u5728reply\u7684finished\u4fe1\u53f7\u54cd\u5e94\u51fd\u6570\u4e2d\u4e3a\u5565\u4e0d\u80fd\u8bbf\u95eereply\u5462&#xff0c;\u6253\u5370\u4e00\u4e0breply\u770b\u770b\u5565\u60c5\u51b5\u3002<\/p>\n<p>m_reply&#061; m_modbus-&gt;sendReadRequest(m_unit[1], m_outputID);<br \/>\n        if(m_reply &amp;&amp; !m_reply-&gt;isFinished())<br \/>\n        {<br \/>\n            connect(m_reply, &amp;QModbusReply::finished, [this]() {<\/p>\n<p>qDebug()&lt;&lt;m_reply;<br \/>\n            });<br \/>\n        } <\/p>\n<p><span style=\"color:#fe2c24\">\u4e00\u65e6QModbus\u8bbe\u5907\u65ad\u7535&#xff0c;reply\u7adf\u7136\u662f\u7a7a\u503c&#xff01;&#xff01;&#xff01;&#xff01;<\/span><\/p>\n<p>QModbusReply(0x232d1d5de40)<br \/>\nQModbusReply(0x232d1d5f3b0)<br \/>\nQModbusReply(0x232d1d604e0)<br \/>\nQModbusReply(0x232d1d60f00)<br \/>\nQModbusReply(0x232d1d630e0)<br \/>\n&#034;TCP socket error (The remote host closed the connection).&#034;<br \/>\nQModbusDevice::UnconnectedState<br \/>\nQObject(0x0)<br \/>\nQObject(0x0)<br \/>\nQObject(0x0)<br \/>\nQObject(0x0)<br \/>\nQObject(0x0) <\/p>\n<p><span style=\"color:#fe2c24\">\u8fdc\u7a0b\u670d\u52a1\u5668\u5173\u95ed\u4e4b\u540e&#xff0c;reply\u7684\u54cd\u5e94\u51fd\u6570\u4e2d\u8bbf\u95eereply\u7adf\u7136\u662f\u7a7a\u503c&#xff01;&#xff01;&#xff01;<\/span><\/p>\n<p>\u6240\u4ee5\u5728\u54cd\u5e94\u51fd\u6570\u4e2d\u8fd8\u8981\u5224\u65adreply\u662f\u90fd\u4e3a\u7a7a\u503c&#xff0c;\u624d\u80fd\u7ee7\u7eed&#xff1a;<\/p>\n<p>m_reply&#061; m_modbus-&gt;sendReadRequest(m_unit[1], m_outputID);<br \/>\n        if(m_reply &amp;&amp; !m_reply-&gt;isFinished())<br \/>\n        {<br \/>\n            connect(m_reply, &amp;QModbusReply::finished, [this]() {<\/p>\n<p>               if (!m_reply[0]) {<br \/>\n                    return ;<br \/>\n                }<\/p>\n<p>                if(m_reply-&gt;error() &#061;&#061; QModbusDevice::NoError)<br \/>\n                {<br \/>\n                    m_outputs &#061; m_reply-&gt;result().values();<br \/>\n                }<br \/>\n                m_modbus-&gt;disconnect(SIGNAL(timeoutChanged(int)), 0, 0);<br \/>\n                delete m_reply;<br \/>\n                m_reply &#061; nullptr;<br \/>\n            });<br \/>\n        } <\/p>\n<p>\u8fd9\u6837\u5904\u7406\u540e\u7a0b\u5e8f\u7ec8\u4e8e\u6b63\u5e38\u4e86&#xff0c;\u4f46\u662f\u53c8\u51fa\u73b0\u4e86\u53e6\u4e00\u4e2a\u95ee\u9898\u3002<\/p>\n<h2>5.\u65b9\u6848\u4e94&#xff08;\u5b8c\u6574\u89e3\u51b3&#xff09;<\/h2>\n<p>\u4e0a\u8ff0\u65b9\u6848\u4e2d\u4f7f\u7528deleter m_reply\u7adf\u7136\u4e5f\u6709\u95ee\u9898\u3002\u5f53\u672c\u6765\u901a\u4fe1\u8d85\u65f6\u7684\u65f6\u5019&#xff08;\u6bd4\u5982\u4f20\u5165\u7684\u9519\u8bef\u7684\u901a\u4fe1\u5730\u5740&#xff09;&#xff0c;\u54cd\u5e94\u4f1a\u6bd4\u8f83\u6162\u3002\u6b64\u65f6\u670d\u52a1\u5668\u65ad\u5f00\u8fde\u63a5&#xff0c;reply\u7adf\u7136\u4e0d\u662fnullptr&#xff0c;\u6b64\u65f6\u7a0b\u5e8f\u5728delete reply\u8fd9\u53e5\u5d29\u4e86\u3002\u6000\u7591\u6b64\u65f6\u7684reply\u8fd8\u5728\u5f02\u6b65\u5904\u7406\u522b\u7684\u4e8b\u60c5\u3002\u6539\u6210reply-&gt;deleterLater()\u4e4b\u540e\u5c31\u6ca1\u95ee\u9898\u4e86\u3002<\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u9690\u85cf\u7684\u95ee\u9898&#xff0c;m_modbus-&gt;disconnect(SIGNAL(timeoutChanged(int)), 0, 0) \u8fd9\u53e5\u662f\u4e3a\u4e86\u89e3\u51b3\u5185\u5b58\u589e\u52a0\u95ee\u9898&#xff0c;\u5982\u679c\u670d\u52a1\u5668\u4e2d\u65ad\u5bfc\u81f4reply&#061;&#061;nullptr,\u8fd9\u53e5\u8bdd\u5c31\u88ab\u8df3\u8fc7\u4e86\u3002\u53ef\u4ee5\u628a\u8fd9\u53e5\u653e\u5728\u51fd\u6570\u4f53\u6700\u524d\u9762&#xff0c;\u5e76\u6ca1\u6709\u5bfc\u81f4\u95ee\u9898\u3002<\/p>\n<p>\u5b8c\u6574\u89e3\u51b3\u540e\u5982\u4e0b&#xff1a;<\/p>\n<p>m_reply &#061; m_modbus-&gt;sendReadRequest(read, m_485ID);<\/p>\n<p>        if(m_reply &amp;&amp; !m_reply-&gt;isFinished())<br \/>\n        {<br \/>\n            connect(m_reply, &amp;QModbusReply::finished, [this]() {<\/p>\n<p>                m_modbus-&gt;disconnect(SIGNAL(timeoutChanged(int)), 0, 0);<\/p>\n<p>                \/\/\u5982\u679c\u8fdc\u7a0b\u670d\u52a1\u5668\u5173\u95ed&#xff0c;\u8fd9\u4e2areply\u662f0<br \/>\n                if (!m_reply) {<br \/>\n                    return ;<br \/>\n                }<\/p>\n<p>                if(m_reply-&gt;error() &#061;&#061; QModbusDevice::NoError)<br \/>\n                {<\/p>\n<p>                    QVector&lt;quint16&gt;values &#061; m_reply-&gt;result().values();<br \/>\n                    if(m_values !&#061; values) {<br \/>\n                        m_values &#061; values;<br \/>\n                    }<br \/>\n                }<\/p>\n<p>\/\/\u5982\u679c\u8d85\u65f6\u9519\u8bef&#xff0c;\u4e0b\u9762\u4e0d\u80fd\u76f4\u63a5delete&#xff0c;\u5426\u5219\u670d\u52a1\u4e2d\u65ad\u4ecd\u7136\u5d29\u6e83<br \/>\n                m_reply-&gt;deleteLater();<br \/>\n                m_reply &#061; nullptr;<\/p>\n<p>            });<br \/>\n        }<br \/>\n        else {<br \/>\n            m_modbus-&gt;disconnect(SIGNAL(timeoutChanged(int)), 0, 0);<br \/>\n            m_reply-&gt;deleteLater();<br \/>\n            m_reply &#061; nullptr;<br \/>\n        } <\/p>\n<p>\u76ee\u524d\u7b97\u662f\u5f7b\u5e95\u89e3\u51b3\u5d29\u6e83\u95ee\u9898&#xff0c;\u540e\u9762\u7ee7\u7eed\u6d4b\u8bd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\u3002QModbus\u670d\u52a1\u5668\u65ad\u7ebf\u5bfc\u81f4\u7684\u7a0b\u5e8f\u5d29\u6e83\u3002_qt tcp client\u8fde\u63a5\u9519\u8bef\u7a0b\u5e8f\u5361\u9000\u7684\u89e3\u51b3\u65b9\u6cd5<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1259,218],"topic":[],"class_list":["post-17229","post","type-post","status-publish","format-standard","hentry","category-server","tag-qmodbus","tag-qt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/17229.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\u3002QModbus\u670d\u52a1\u5668\u65ad\u7ebf\u5bfc\u81f4\u7684\u7a0b\u5e8f\u5d29\u6e83\u3002_qt tcp client\u8fde\u63a5\u9519\u8bef\u7a0b\u5e8f\u5361\u9000\u7684\u89e3\u51b3\u65b9\u6cd5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/17229.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T15:39:18+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17229.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/17229.html\",\"name\":\"QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T15:39:18+00:00\",\"dateModified\":\"2025-04-18T15:39:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/17229.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/17229.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17229.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/17229.html","og_locale":"zh_CN","og_type":"article","og_title":"QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\u3002QModbus\u670d\u52a1\u5668\u65ad\u7ebf\u5bfc\u81f4\u7684\u7a0b\u5e8f\u5d29\u6e83\u3002_qt tcp client\u8fde\u63a5\u9519\u8bef\u7a0b\u5e8f\u5361\u9000\u7684\u89e3\u51b3\u65b9\u6cd5","og_url":"https:\/\/www.wsisp.com\/helps\/17229.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T15:39:18+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/17229.html","url":"https:\/\/www.wsisp.com\/helps\/17229.html","name":"QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T15:39:18+00:00","dateModified":"2025-04-18T15:39:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/17229.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/17229.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/17229.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"QModbusTCPClient \u670d\u52a1\u5668\u65ad\u5f00\u5f15\u8d77\u7684\u7a0b\u5e8f\u5d29\u6e83"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=17229"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17229\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=17229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=17229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=17229"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=17229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}