{"id":36724,"date":"2025-05-12T02:01:57","date_gmt":"2025-05-11T18:01:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36724.html"},"modified":"2025-05-12T02:01:57","modified_gmt":"2025-05-11T18:01:57","slug":"%e3%80%90%e6%99%ba%e8%83%bd%e5%ae%b6%e5%b1%85%e9%a1%b9%e7%9b%ae%e3%80%91rt-thread%e7%89%88%e6%9c%ac-dht11%e8%8e%b7%e5%8f%96%e6%b8%a9%e6%b9%bf%e5%ba%a6-mqtt%e4%b8%8a%e4%bc%a0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36724.html","title":{"rendered":"\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe"},"content":{"rendered":"<p>&#x1f431;\u4f5c\u8005&#xff1a;\u4e00\u53ea\u5927\u55b5\u54aa1201 &#x1f431;\u4e13\u680f&#xff1a;\u300a\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u300b &#x1f525;\u683c\u8a00&#xff1a;<font color=\"red\" size=\"3\">\u4f60\u53ea\u7ba1\u52aa\u529b&#xff0c;\u5269\u4e0b\u7684\u4ea4\u7ed9\u65f6\u95f4&#xff01; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180151-6820e60fc3fa0.jpg\" alt=\"\u56fe\" \/><\/font><\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u672c\u55b5\u5c06\u4f7f\u7528RT-Thread Studio\u6765\u5b9e\u73b0\u8fd9\u4e2a\u667a\u80fd\u5bb6\u5c45\u7684\u9879\u76ee&#xff0c;\u6700\u7ec8\u6548\u679c\u548c\u524d\u9762\u7684\u88f8\u673a\u7248\u672c\u4ee5\u53caFreeRTOS\u7248\u672c\u4e00\u6837\u3002\u5728\u8fd9\u91cc\u672c\u55b5\u5c06\u8ba9\u5927\u5bb6\u4f53\u9a8c\u5230RT-Thread Studio\u7684\u4fbf\u5229\u3002<\/p>\n<h2>&#x1f3c0;\u521b\u5efa\u5de5\u7a0b<\/h2>\n<p>\u9996\u5148\u6253\u5f00 RT-Thread Studio \u8f6f\u4ef6&#xff0c;\u5982\u4f55\u5b89\u88c5\u8be5\u8f6f\u4ef6\u672c\u55b5\u5c31\u4e0d\u8bb2\u89e3\u4e86&#xff0c;\u76f4\u63a5\u53bb\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180152-6820e6102876c.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe&#xff0c;\u6253\u5f00\u8f6f\u4ef6\u4ee5\u540e&#xff0c;\u5173\u95ed\u6389\u6b22\u8fce\u754c\u9762&#xff0c;\u7136\u540e\u6309\u7167\u56fe\u4e2d\u7684\u6b65\u9aa4\u6765\u64cd\u4f5c&#xff1a;<\/p>\n<li>\u70b9\u51fb\u5de6\u4e0a\u89d2\u6587\u4ef6\u4e2d\u7684\u65b0\u5efa&#xff0c;\u9009\u62e9 RT-Thread \u9879\u76ee\u3002<\/li>\n<ul>\n<li>RT-Thread\u9879\u76ee\u662f\u6807\u51c6\u5de5\u7a0b&#xff0c;\u5b83\u5305\u542bRT-Thread\u7684\u6240\u6709\u529f\u80fd&#xff0c;\u53ef\u4ee5\u5b89\u88c5\u5927\u91cf\u7684\u7ec4\u4ef6\u3002<\/li>\n<li>RT-Thread Nano\u9879\u76ee\u662f\u7b80\u5316\u7248\u672c&#xff0c;\u5b83\u5305\u542b\u7684\u529f\u80fd\u548cFreeRTOS\u4e00\u6837&#xff0c;\u4ec5\u652f\u6301\u4efb\u52a1&#xff0c;\u4efb\u52a1\u95f4\u901a\u4fe1\u7b49\u7b49&#xff0c;\u4e0d\u652f\u6301\u7ec4\u4ef6\u3002<\/li>\n<\/ul>\n<li>\u8f93\u5165\u5de5\u7a0b\u540d\u5b57\u548c\u5de5\u7a0b\u6587\u4ef6\u4fdd\u5b58\u8def\u5f84\u3002<\/li>\n<ul>\n<li>\u5982\u679c\u4f7f\u7528\u7f3a\u7701\u4f4d\u7f6e&#xff0c;\u5219\u4f1a\u4fdd\u5b58\u5230RT-Thread Studio\u7684\u5b89\u88c5\u8def\u5f84\u4e0b\u7684\u67d0\u4e00\u4e2a\u6587\u4ef6\u4e2d\u3002<\/li>\n<\/ul>\n<li>\u9009\u62e9\u82af\u7247\u578b\u53f7\u548c\u63a7\u5236\u53f0\u7aef\u53e3\u4ee5\u53ca\u8c03\u8bd5\u7aef\u53e3\u3002<\/li>\n<ul>\n<li>\u6839\u636e\u82af\u7247\u7684\u5382\u5546&#xff0c;\u9009\u62e9\u76f8\u5e94\u7684\u578b\u53f7&#xff0c;\u672c\u55b5\u8fd9\u91cc\u9009\u62e9\u7684\u662fSTM32F103ZE\u3002<\/li>\n<li>\u9009\u62e9\u63a7\u5236\u53f0\u6240\u7528\u7684\u4e32\u53e3&#xff0c;\u8be5\u63a7\u5236\u53f0\u5c31\u50cf\u662f\u677f\u5b50\u4e0a\u8fd0\u884c\u7684\u4e00\u4e2ashell\u3002<\/li>\n<li>\u9009\u62e9\u8c03\u8bd5\u5668\u4ee5\u53ca\u63a5\u53e3\u7c7b\u578b&#xff0c;\u6709ST-Link\u548cJ-Link\u7b49\u7b49&#xff0c;\u6839\u636e\u81ea\u5df1\u7684\u8bbe\u5907\u6765\u9009\u62e9\u3002<\/li>\n<\/ul>\n<li>\u6700\u540e\u70b9\u51fb\u5b8c\u6210\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180152-6820e6107b33c.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe&#xff0c;\u6b64\u65f6\u4e00\u4e2a\u5de5\u7a0b\u5c31\u521b\u5efa\u597d\u4e86&#xff0c;\u5de6\u8fb9\u662f\u9879\u76ee\u8d44\u6e90\u7ba1\u7406\u5668&#xff0c;\u5305\u542b\u8be5\u5de5\u7a0b\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002<\/p>\n<ul>\n<li>RT-Thread Setting&#xff1a;\u53cc\u51fb\u8fd9\u4e2a\u4f1a\u51fa\u73b0\u4e00\u4e2a\u56fe\u5f62\u5316\u754c\u9762&#xff0c;\u7528\u6765\u5b89\u88c5\u5404\u79cd\u7ec4\u4ef6&#xff0c;\u540e\u9762\u4f1a\u7528\u5230\u3002<\/li>\n<li>CubeMX Setting&#xff1a;\u53cc\u51fb\u8fd9\u4e2a\u5c31\u4f1a\u6253\u5f00CubeMX&#xff0c;\u53ef\u4ee5\u914d\u7f6e\u82af\u7247\u7684\u5916\u8bbe&#xff0c;\u751f\u6210HAL\u5e93\u7684\u4ee3\u7801\u3002<\/li>\n<li>drv_clk.c&#xff1a;\u5728drivers\u76ee\u5f55\u4e0b\u7684drv_clk.c\u4e2d&#xff0c;\u53ef\u4ee5\u4fee\u6539\u65f6\u949f\u6e90&#xff0c;\u751f\u6210\u7684\u5de5\u7a0b\u9ed8\u8ba4\u4f7f\u7528\u7684\u662f\u5185\u90e8\u9ad8\u901f\u65f6\u949fHSI&#xff0c;\u53ef\u4ee5\u4fee\u6539\u4ee3\u7801\u914d\u7f6e\u6210\u5916\u90e8\u65f6\u949f\u6e90HSE&#xff0c;\u672c\u55b5\u8fd9\u91cc\u5c31\u4e0d\u914d\u7f6e\u4e86&#xff0c;\u76f4\u63a5\u4f7f\u7528\u5185\u90e8\u9ad8\u901f\u65f6\u949f\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180152-6820e610c603a.png\" alt=\"tu \" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5c06\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1&#xff0c;\u7136\u540e\u5c06\u7a0b\u5e8f\u4e0b\u8f7d\u5230\u5f00\u53d1\u677f\u4e2d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180153-6820e61109e25.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5c06\u5f00\u53d1\u677f\u7684uart1\u548c\u7535\u8111\u76f8\u8fde&#xff0c;\u5e76\u4e14\u6253\u5f00\u4e32\u53e3\u52a9\u624b&#xff0c;\u53ef\u4ee5\u770b\u5230\u5185\u6838\u7684\u6253\u5370\u4fe1\u606f(\u7eff\u8272\u6846)&#xff0c;\u548cmain\u7ebf\u7a0b\u7684\u6253\u5370\u4fe1\u606f&#xff0c;\u7ea2\u8272\u6846\u4e2d\u3002<\/p>\n<ul>\n<li>\u5728RT-Thread\u4e2d&#xff0c;\u4efb\u52a1\u88ab\u53eb\u505a\u7ebf\u7a0b\u3002<\/li>\n<li>main\u51fd\u6570\u4ec5\u662f\u5176\u4e2d\u7684\u4e00\u4e2a\u7ebf\u7a0b\u3002<\/li>\n<\/ul>\n<p>main\u51fd\u6570\u5728applications\u76ee\u5f55\u4e0b&#xff0c;\u53ef\u4ee5\u770b\u5230&#xff0c;\u8be5\u51fd\u6570\u4e2d\u5e76\u6ca1\u6709\u50cfFreeRTOS\u4e00\u6837\u7684\u5185\u6838\u521d\u59cb\u5316\u548c\u542f\u52a8\u8c03\u5ea6\u5668\u7b49\u5185\u5bb9&#xff0c;\u4ec5\u4ec5\u662f\u4e00\u4e2a\u5e72\u5e72\u51c0\u51c0\u7684main\u51fd\u6570\u3002<\/p>\n<h3>&#x1f3d0;RT-Thread\u542f\u52a8\u6d41\u7a0b<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180153-6820e6113ebd7.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793aRT-Thread\u7684\u542f\u52a8\u6d41\u7a0b&#xff0c;\u672c\u55b5\u5927\u6982\u4ecb\u7ecd\u4e00\u4e0b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7b2c1\u4e2a\u6587\u4ef6&#xff1a;startup_stm32f103xe.s<\/p>\n<ul>\n<li>\u8c03\u7528SystemInit&#xff1a;\u7cfb\u7edf\u521d\u59cb\u5316&#xff0c;\u6bd4\u5982\u521d\u59cb\u5316\u65f6\u949f<\/li>\n<li>\u8c03\u7528__main&#xff1a;\u91cd\u5b9a\u4f4d&#xff0c;\u6bd4\u5982\u628a\u4ee3\u7801\u6bb5\u4eceFlash\u590d\u5236\u5230\u5185\u5b58&#xff0c;\u7136\u540e\u6267\u884c$Sub$$main<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7b2c2\u4e2a\u6587\u4ef6&#xff1a;src\\\\components.c<\/p>\n<ul>\n<li>\u6267\u884c\u4e00\u7cfb\u5217\u7684\u521d\u59cb\u5316<\/li>\n<li>\u8c03\u7528rt_application_init\n<ul>\n<li>\u521d\u59cb\u5316RTT\u7ec4\u4ef6(\u5305\u62ec\u521b\u5efaSHELL\u7ebf\u7a0b)&#xff1a;\u56e0\u4e3a\u6709SHELL\u7ebf\u7a0b&#xff0c;\u6240\u4ee5\u5373\u4f7fmain\u51fd\u6570\u4e3a\u7a7a&#xff0c;\u4e5f\u662f\u53ef\u4ee5\u64cd\u4f5c\u5f00\u53d1\u677f\u7684<\/li>\n<li>\u8c03\u7528main\u51fd\u6570&#xff1a;\u53ef\u4ee5\u5199\u4e3a\u7a7a\u51fd\u6570<\/li>\n<\/ul>\n<\/li>\n<li>\u542f\u52a8\u8c03\u5ea6\u5668&#xff1a;rt_system_scheduler_start<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u4f4d\u7f6e\u2460\u5904\u521b\u5efa\u4e86SHELL\u7ebf\u7a0b&#xff0c;\u7528\u6237\u53ef\u4ee5\u5728\u4e32\u53e3\u4e0a\u8f93\u5165\u5404\u79cd\u547d\u4ee4&#xff1b;\u6240\u4ee5\u4f4d\u7f6e\u2461\u7684main\u51fd\u6570\u5199\u4e3a\u7a7a\u51fd\u6570\u4e5f\u662f\u53ef\u4ee5\u7684\u3002<\/p>\n<h3>&#x1f3d0;\u6dfb\u52a0DHT11\u8f6f\u4ef6\u5305<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180153-6820e6116d64d.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u589e\u52a0DHT11\u7684\u8f6f\u4ef6\u5305&#xff1a;<\/p>\n<li>\u53cc\u51fb\u9879\u76ee\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u7684RT-Thread Setting&#xff0c;\u5f39\u51fa\u4e00\u4e2a\u56fe\u5f62\u754c\u9762\u7a97\u53e3\u3002<\/li>\n<li>\u70b9\u51fb\u6dfb\u52a0\u8f6f\u4ef6\u5305&#xff0c;\u5f39\u51fa\u8f6f\u4ef6\u5305\u9009\u62e9\u754c\u9762\u3002<\/li>\n<li>\u641c\u7d22DHT11&#xff0c;\u51fa\u73b0\u591a\u4e2a\u8f6f\u4ef6\u5305\u3002<\/li>\n<li>\u627e\u5230\u4e0b\u8f7d\u6b21\u6570\u6700\u591a\u7684(\u7eff\u8272\u6846)&#xff0c;\u7136\u540e\u70b9\u51fb\u76f8\u5e94\u8f6f\u4ef6\u5305\u7684\u6dfb\u52a0\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180153-6820e611b8b75.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe&#xff0c;\u6b64\u65f6\u8f6f\u4ef6\u5305\u8fd9\u91cc\u5c31\u4f1a\u6709\u4e00\u4e2adht11\u7684\u56fe\u6807&#xff0c;\u7136\u540e\u6309\u4e0b\u5feb\u6377\u952eCtrl &#043; s\u4fdd\u5b58&#xff0c;\u5c31\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u8f6f\u4ef6\u5305\u5e76\u4e14\u6784\u5efa\u5230\u5de5\u7a0b\u4e2d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180153-6820e611c8b47.png\" alt=\"\u56fe\" \/><\/p>\n<p>\u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u6b64\u65f6\u5728packages\u76ee\u5f55\u4e0b\u5c31\u6709\u4e00\u4e2adht11-latest\u7684\u76ee\u5f55&#xff0c;\u91cc\u9762\u5305\u542b\u51e0\u4e2a.c\u548c.h\u6587\u4ef6\u3002\u5176\u4e2ddht11_sample.c\u662f\u4e00\u4e2a\u6837\u4f8b\u3002<\/p>\n<p>\u6253\u5f00dht11_sample.c\u540e&#xff0c;\u5c06#include &#034;drv_gpio.h&#034;\u4fee\u6539\u6210#include &#034;drv_common.h&#034;&#xff0c;\u8fd9\u662f\u7531\u4e8e\u7248\u672c\u539f\u56e0&#xff0c;\u65b0\u7248\u672c\u548cgpio\u76f8\u5173\u7684\u5b9a\u4e49\u90fd\u653e\u5728\u4e86drv_common.h\u4e2d\u3002<\/p>\n<p>\u8fd8\u8981\u4fee\u6539\u8bfb\u53d6DHT11\u6e29\u6e7f\u5ea6\u6570\u636e\u7684\u5f15\u811a&#xff0c;\u751f\u6210\u5de5\u7a0b\u540e\u9ed8\u8ba4\u4f7f\u7528\u7684\u662fPB12&#xff0c;\u67e5\u770b\u539f\u7406\u56fe\u4f7f\u7528\u81ea\u5df1\u5bf9\u5e94\u7684\u5f15\u811a&#xff0c;\u672c\u55b5\u8fd9\u91cc\u662fPF6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180154-6820e612003f3.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe&#xff0c;\u5728\u7f16\u8bd1\u7684\u65f6\u5019\u4f1a\u62a5\u9519\u627e\u4e0d\u5230sensor.h\u5934\u6587\u4ef6&#xff0c;\u6240\u4ee5\u9700\u8981\u5c06\u5934\u6587\u4ef6\u7684\u8def\u5f84\u544a\u8bc9\u7f16\u8bd1\u5668\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180154-6820e6122c1ee.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe&#xff0c;sensor.h\u5934\u6587\u4ef6\u4f4d\u4e8esensors\u6587\u4ef6\u5939\u4e2d\u3002\u70b9\u51fb\u6700\u4e0a\u8fb9\u7684c\/c&#043;&#043;\u9879\u76ee&#xff0c;\u627e\u5230\u8be5\u6587\u4ef6&#xff0c;\u7136\u540e\u53f3\u952e\u70b9\u51fb&#xff0c;\u5728\u5f39\u51fa\u7684\u754c\u9762\u4e2d\u8fdb\u884c\u6dfb\u52a0\u6784\u5efa\u3002<\/p>\n<ul>\n<li>\u6dfb\u52a0\u6784\u5efa\u5c31\u662f\u5728\u7f16\u8bd1\u7684\u65f6\u5019&#xff0c;\u8981\u7f16\u8bd1\u8fd9\u90e8\u5206\u6587\u4ef6&#xff0c;\u5426\u5219\u4e0d\u4f1a\u7f16\u8bd1\u8fd9\u91cc\u7684\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180154-6820e6125b957.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u70b9\u51fb\u6807\u53f71\u7684\u8bbe\u7f6e&#xff0c;\u7136\u540e\u9009\u62e9\u6807\u53f72\u7684\u8def\u5f84\u548c\u7b26\u5408&#xff0c;\u6700\u540e\u6dfb\u52a0sensor.h\u5934\u6587\u4ef6\u6240\u5728\u8def\u5f84\u3002<\/p>\n<ul>\n<li>\/\/${ProjName}\u8868\u793a\u7684\u662f\u5de5\u7a0b\u6587\u4ef6\u540d\u5b57&#xff0c;\u540e\u9762\u7684\u662f\u8def\u5f84\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180154-6820e612b6df7.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5c06\u7a0b\u5e8f\u91cd\u65b0\u7f16\u8bd1\u597d\u4e0b\u8f7d\u5230\u677f\u5b50\u4e2d\u4ee5\u540e&#xff0c;\u5728\u4e32\u53e3\u52a9\u624b\u4e0a\u5c31\u53ef\u4ee5\u770b\u5230\u8f93\u51fa\u7684\u6e29\u6e7f\u5ea6\u6570\u636e\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180154-6820e612c8eef.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u6211\u4eec\u5b89\u88c5\u8f6f\u4ef6\u5305\u4e2d\u7684dht11_sample.c\u4e2d&#xff0c;\u4e13\u95e8\u6709\u4e00\u4e2a\u7ebf\u7a0bread_temp_entry\u8bfb\u53d6\u6e29\u6e7f\u5ea6\u6570\u636e\u7684\u7ebf\u7a0b&#xff0c;\u4e0d\u65ad\u8c03\u7528rt_device_read\u6765\u8bfb\u53d6DHT11\u6e29\u6e7f\u5ea6\u4f20\u611f\u5668\u7684\u6570\u636e&#xff0c;\u5e76\u4e14\u6253\u5370\u51fa\u6765\u3002<\/p>\n<ul>\n<li>rt_device_read\u662f\u4e00\u4e2a\u6807\u51c6\u63a5\u53e3&#xff0c;\u5c31\u50cf\u5199C\u8bed\u8a00\u4ee3\u7801\u4e2d\u7684open\u51fd\u6570\u4e00\u6837\u3002<\/li>\n<li>DHT11\u7684\u9a71\u52a8\u6846\u67b6\u662f\u600e\u6837\u7684&#xff0c;\u672c\u55b5\u5c31\u4e0d\u5728\u8fd9\u91cc\u8bb2\u89e3\u4e86\u3002<\/li>\n<\/ul>\n<p>\u6b64\u65f6\u6211\u4eec\u5c31\u5b9e\u73b0\u4e86\u6e29\u6e7f\u5ea6\u7684\u8bfb\u53d6&#xff0c;\u53ef\u4ee5\u770b\u5230&#xff0c;\u6574\u4e2a\u8fc7\u7a0b\u4e2d\u4e5f\u6ca1\u6709\u5199\u591a\u5c11\u4ee3\u7801&#xff0c;RT-Thread Studio\u4e2d\u7684\u8f6f\u4ef6\u5305\u5e2e\u6211\u4eec\u5b9e\u73b0\u4e86\u8fd9\u90e8\u5206\u4ee3\u7801\u3002<\/p>\n<h3>&#x1f3d0;\u6dfb\u52a0ESP8266\u8f6f\u4ef6\u5305<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180155-6820e6130ca9c.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u6309\u71671~6\u7684\u6b65\u9aa4\u6dfb\u52a0\u4e00\u4e2aAT\u8bbe\u5907&#xff0c;\u8fd9\u662f\u7528\u6765\u548cESP8266\u901a\u4fe1\u7684\u3002<\/p>\n<ul>\n<li>\u7b2c6\u6b65\u4e2d&#xff0c;\u586b\u5165WIFI\u6a21\u5757\u8981\u8fde\u7684WIFI\u540d\u79f0\u548c\u5bc6\u7801\u3002<\/li>\n<li>\u66f4\u6539AT\u8bbe\u5907\u4f7f\u7528\u7684\u4e32\u53e3\u4e3auart3&#xff0c;\u6839\u636e\u539f\u7406\u56fe\u6765\u786e\u5b9a\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180155-6820e61346db6.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u6b64\u65f6\u5c31\u81ea\u52a8\u6709\u4e86\u4e00\u4e2aAT DEVICE\u8f6f\u4ef6\u5305\u548c\u4e00\u4e2aAT\u5ba2\u6237\u7aef\u7ec4\u4ef6(\u7ea2\u8272\u6846)&#xff0c;\u7136\u540e\u70b9\u51fb\u7eff\u8272\u6846\u4e2d\u7684libc\u4f7f\u80fdC\u8bed\u8a00\u5e93&#xff0c;\u56e0\u4e3a\u8981\u7528\u5230C\u8bed\u8a00\u5e93\u4e2d\u7684\u51fd\u6570\u3002\u6700\u540e\u6309\u4e0bCtrl &#043; s\u4fdd\u5b58\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180155-6820e6136d183.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u8981\u5728drivers\u76ee\u5f55\u4e0b\u7684board.h\u4e2d\u5b9a\u4e49uart3&#xff0c;\u4eff\u7167uart1\u5b9a\u4e49\u5373\u53ef&#xff0c;\u6839\u636e\u539f\u7406\u56fe\u5b9a\u4e49\u4f7f\u7528\u7684\u5f15\u811a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180155-6820e613985cc.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe&#xff0c;\u5c06main.c\u548cdht11_sample.c\u4e2d\u7684\u6253\u5370\u4fe1\u606f\u6ce8\u91ca\u6389&#xff0c;\u8ba9\u5b83\u4e0d\u8981\u5e72\u6270\u4e32\u53e3\u52a9\u624b\u7684\u8f93\u51fa\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180155-6820e613d183e.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5c06\u7a0b\u5e8f\u7f16\u8bd1\u4e0b\u8f7d\u5230\u5f00\u53d1\u677f\u540e&#xff0c;\u53ef\u4ee5\u4ece\u4e32\u53e3\u52a9\u624b\u770b\u5230WIFI\u8fde\u63a5\u6210\u529f\u7684\u6d88\u606f\u3002<\/p>\n<p>\u5728\u63a7\u5236\u53f0\u4f7f\u7528ifconfig\u53ef\u4ee5\u770b\u5230\u83b7\u5f97\u4e86IP\u5730\u5740&#xff0c;\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528ping\u547d\u4ee4\u548cwww.baidu.com\u8fdb\u884c\u7f51\u7edc\u901a\u4fe1\u3002\u6b64\u65f6ESP8266\u5c31\u8bbe\u7f6e\u6210\u529f\u4e86\u3002<\/p>\n<h3>&#x1f3d0;\u6dfb\u52a0MQTT\u8f6f\u4ef6\u5305<\/h3>\n<p>MQTT\u662f\u4e00\u79cd\u7f51\u7edc\u901a\u4fe1\u534f\u8bae&#xff0c;\u9002\u5408\u4e8e\u5c11\u91cf\u6570\u636e\u7684\u4f20\u8f93&#xff0c;\u5177\u4f53\u539f\u7406\u672c\u55b5\u5c31\u4e0d\u5728\u8fd9\u91cc\u4ecb\u7ecd\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180155-6820e613e8fc7.png\" alt=\"\u56fe\" \/><\/p>\n<p>\u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u6309\u7167\u6b65\u9aa41~3\u6dfb\u52a0pahomqtt\u8f6f\u4ef6\u5305\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-123wafkpy45jm.png\" alt=\"\u5982\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u8f6f\u4ef6\u5305\u5904\u4f1a\u6709\u4e00\u4e2aPaho MQTT&#xff0c;\u5c06\u9f20\u6807\u79fb\u4e0a\u53bb\u4ee5\u540e\u70b9\u51fb\u51fa\u73b0\u7684\u914d\u7f6e\u9879(\u6b65\u9aa41)&#xff0c;\u7136\u540e\u5728\u5f39\u51fa\u7684\u754c\u9762\u4e2d\u4f7f\u80fdMQTT\u793a\u4f8b(\u6b65\u9aa42)\u3002\u6700\u540e\u4fdd\u5b58\u914d\u7f6e\u3002<\/p>\n<ul>\n<li>\u6bcf\u6b21\u4fdd\u5b58\u4e86\u65b0\u7684\u914d\u7f6e\u4ee5\u540e&#xff0c;sensor.h\u6587\u4ef6\u53c8\u4f1a\u627e\u4e0d\u5230&#xff0c;\u8fd9\u662f\u8be5\u8f6f\u4ef6\u7684\u4e00\u4e2aBUG&#xff0c;\u6240\u4ee5\u9700\u8981\u91cd\u65b0\u6dfb\u52a0\u8def\u5f84\u548c\u6dfb\u52a0\u6784\u5efa\u3002<\/li>\n<\/ul>\n<h2>&#x1f3c0;\u4e0e\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5<\/h2>\n<p>\u73b0\u5728\u5de5\u7a0b\u5c31\u914d\u7f6e\u597d\u4e86&#xff0c;\u6b64\u65f6\u6211\u4eec\u7684\u5f00\u53d1\u677f\u5c31\u662f\u4e00\u4e2a\u5ba2\u6237\u7aef&#xff0c;\u63a5\u4e0b\u6765\u5c31\u662f\u9700\u8981\u8ba9\u5f00\u53d1\u677f\u548c\u670d\u52a1\u5668\u8fdb\u884c\u8fde\u63a5\u548c\u901a\u4fe1\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12wfyfkfp1syp.png\" alt=\"\u56fe\" \/><\/p>\n<p>\u5982\u4e0a\u56fe&#xff0c;\u672c\u55b5\u5728\u963f\u91cc\u4e91\u5e73\u53f0\u914d\u7f6e\u4e86\u4e00\u4e2a\u8bbe\u5907\u5b9e\u4f8b&#xff0c;\u6253\u5f00\u8be5\u8bbe\u5907\u540e&#xff0c;\u70b9\u51fb\u91cc\u9762\u7684MQTT\u8fde\u63a5\u53c2\u6570\u540e\u9762\u7684\u67e5\u770b(\u7ea2\u8272\u6846)&#xff0c;\u7136\u540e\u5c31\u4f1a\u5f39\u51fa\u53c2\u6570\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-122knjkpuqx0c.png\" alt=\"\u56fe\" \/><\/p>\n<p>\u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u4ea7\u54c1\u4e2d\u6709\u9ed8\u8ba4\u7684\u8ba2\u9605\u4e3b\u9898\u548c\u53d1\u5e03\u4e3b\u9898&#xff0c;\u6211\u4eec\u5c31\u76f4\u63a5\u8ba2\u9605\/user\/get\u8fd9\u4e2a\u4e3b\u9898&#xff0c;\u4ee5\u53ca\u53d1\u5e03\/user\/update\u8fd9\u4e2a\u4e3b\u9898\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-122fqldqkvmii.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5c06\u81ea\u52a8\u751f\u6210\u7684mqtt_sample.c\u4e2d\u7684\u9ed8\u8ba4MQTT\u8fde\u63a5\u53c2\u6570\u6539\u6210\u81ea\u5df1\u670d\u52a1\u5668\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12kuw2so3unsz.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728mqtt_sart\u51fd\u6570\u4e2d&#xff0c;\u9ed8\u8ba4\u751f\u6210\u7684\u4ee3\u7801\u662f\u968f\u673a\u751f\u6210\u4e00\u4e2a\u5ba2\u6237\u7aefID&#xff0c;\u6b64\u65f6\u6211\u4eec\u6709\u56fa\u5b9a\u7684\u5ba2\u6237\u7aefID&#xff0c;\u5c06\u6211\u4eec\u524d\u9762\u670d\u52a1\u5668\u4e2d\u7684ID\u8d4b\u503c\u8fc7\u53bb\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12fwvg25hf4q4.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5c06\u7a0b\u5e8f\u7f16\u8bd1\u5e76\u4e0b\u8f7d\u5230\u5f00\u53d1\u677f\u4e2d\u540e&#xff0c;\u5728\u4e32\u53e3\u52a9\u624b\u4e2d\u6267\u884chelp\u547d\u4ee4&#xff0c;\u53ef\u4ee5\u770b\u5230\u6709\u51e0\u4e2amqtt\u6253\u5934\u7684\u6307\u4ee4\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12gk0s40glhf4.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u4e32\u53e3\u52a9\u624b\u4e2d\u6267\u884cmqtt_start\u547d\u4ee4\u542f\u52a8MQTT&#xff0c;\u4f1a\u6253\u5370\u76f8\u5173\u6210\u529f\u4fe1\u606f&#xff0c;\u5e76\u4e14\u6b64\u65f6\u670d\u52a1\u5668\u8bbe\u5907\u4e5f\u663e\u793a\u5728\u7ebf\u72b6\u6001&#xff0c;\u8bf4\u660e\u6b64\u65f6\u5f00\u53d1\u677f\u8fd9\u4e2a\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668MQTT\u8fde\u63a5\u6210\u529f\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12ounfsc2lick.png\" alt=\"tu \" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u670d\u52a1\u5668\u8bbe\u5907\u4e2d\u7684Topic\u5217\u8868\u91cc&#xff0c;\u70b9\u51fb\u53d1\u5e03\u6d88\u606f&#xff0c;\u53d1\u5e03\/user\/get\u4e3b\u9898\u7684\u6d88\u606f\u7ed9\u5f00\u53d1\u677f\u5ba2\u6237\u7aef&#xff0c;\u7136\u540e\u5728\u5f39\u51fa\u6765\u7684\u6846\u4e2d\u586b\u5165\u53d1\u5e03\u7684\u6d88\u606f&#xff0c;\u6700\u540e\u70b9\u51fb\u5b8c\u6210(\u6b65\u9aa41~5)\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-121c4yv4cvgit.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u6b64\u65f6\u5728\u4e32\u53e3\u52a9\u624b\u4e0a\u5c31\u80fd\u770b\u5230\u670d\u52a1\u5668\u53d1\u5e03\u7684\u4fe1\u606f\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12lg4tknqepcp.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u4e32\u53e3\u52a9\u624b\u4e2d\u4f7f\u7528mqtt_publish\u547d\u4ee4\u53d1\u5e03\u6d88\u606f\u5230\u670d\u52a1\u5668\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12osmnrjif1kc.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u670d\u52a1\u5668\u8bbe\u5907\u4e2d&#xff0c;\u6839\u636e\u6b65\u9aa41~4\u53ef\u4ee5\u67e5\u770b\u5230\u5f00\u53d1\u677f\u5ba2\u6237\u7aef\u521a\u521a\u53d1\u5e03\u7684\u6d88\u606f\u3002<\/p>\n<p>\u6b64\u65f6\u6211\u4eec\u7684\u5f00\u53d1\u677f\u5c31\u548c\u670d\u52a1\u5668\u6210\u529f\u7684\u5efa\u7acb\u4e86\u8fde\u63a5&#xff0c;\u5e76\u4e14\u53ef\u4ee5\u8fdb\u884c\u901a\u4fe1\u4e86\u3002<\/p>\n<h2>&#x1f3c0;\u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe<\/h2>\n<p><img decoding=\"async\" src=\"2025-05-12buaywmr0io0.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u4ee3\u7801\u6240\u793a&#xff0c;\u5728main.c\u6587\u4ef6\u4e2d&#xff0c;\u5b9a\u4e49LED\u4ee5\u53ca\u98ce\u6247\u7684\u5f15\u811a&#xff0c;\u5e76\u5728device_init\u51fd\u6570\u4e2d\u8fdb\u884c\u521d\u59cb\u5316\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12qwg2qfpsa5a.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u4ee3\u7801\u6240\u793a&#xff0c;\u5728device_control_callback\u56de\u8c03\u51fd\u6570\u4e2d\u6839\u636e\u670d\u52a1\u5668\u53d1\u5e03\u7684\u6d88\u606f\u6765\u63a7\u5236\u5916\u8bbe&#xff0c;\u5177\u4f53\u63a7\u5236\u7ec6\u8282\u548c\u524d\u9762FreeRTOS\u7248\u672c\u7684\u4e00\u6837\u3002<\/p>\n<ul>\n<li>msh_exec&#xff1a;\u8c03\u7528\u8be5\u51fd\u6570\u548c\u6211\u4eec\u5728\u4e32\u53e3\u52a9\u624b\u4e0a\u8f93\u5165\u547d\u4ee4\u662f\u4e00\u4e2a\u6548\u679c\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2025-05-12ejj3jhkaf4x.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728main\u51fd\u6570\u4e2d&#xff0c;\u8bfb\u53d6\u6e29\u6e7f\u5ea6\u4f20\u611f\u5668\u7684\u6570\u636e&#xff0c;\u7136\u540e\u518d\u5411\u670d\u52a1\u5668\u53d1\u5e03&#xff0c;\u6bcf\u4e24\u79d2\u8fdb\u884c\u4e00\u6b21\u3002<\/p>\n<ul>\n<li>\u63a7\u5236\u8bbe\u5907\u7684\u56de\u8c03\u51fd\u6570\u8c01\u5728\u6267\u884c&#xff1f;<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2025-05-122pblppqu4uk.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u4ee3\u7801\u6240\u793a&#xff0c;\u63a7\u5236\u8bbe\u5907\u7684device_control_callback\u56de\u8c03\u51fd\u6570\u5728mqtt_sub_callback\u56de\u8c03\u51fd\u6570\u6267\u884c\u3002<\/p>\n<ul>\n<li>\u5728\u542f\u52a8mqtt_start\u7684\u65f6\u5019&#xff0c;\u4f1a\u4e13\u95e8\u521b\u5efa\u4e00\u4e2a\u7ebf\u7a0b\u7528\u6765\u63a5\u6536\u670d\u52a1\u5668\u53d1\u5e03\u7684\u6d88\u606f\u3002<\/li>\n<li>\u5f53\u670d\u52a1\u5668\u53d1\u5e03\u4e86\u6d88\u606f\u4ee5\u540e&#xff0c;\u8be5\u7ebf\u7a0b\u5c31\u4f1a\u8bfb\u53d6&#xff0c;\u5e76\u4e14\u8c03\u7528mqtt_sub_callback\u51fd\u6570\u3002<\/li>\n<\/ul>\n<p>\u6240\u4ee5\u5728\u63a7\u5236\u8bbe\u5907\u7684\u51fd\u6570\u4e2d\u5c31\u53ef\u4ee5\u5f97\u5230\u670d\u52a1\u5668\u53d1\u5e03\u7684\u6d88\u606f\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12mezqfuet0qv.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u4ee3\u7801\u6240\u793a&#xff0c;\u5c06\u539f\u672cdht11_sample.c\u4e2d\u7684dht11_read_temp_sample\u4ece\u6bb5\u4e2d\u79fb\u9664&#xff0c;\u4e0d\u8ba9\u8be5\u51fd\u6570\u6267\u884c&#xff0c;\u56e0\u4e3a\u73b0\u5728\u662f\u5728main.c\u8bfb\u53d6\u6e29\u6e7f\u5ea6\u6570\u636e\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12zqjtq13iswh.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5c06\u7a0b\u5e8f\u7f16\u8bd1\u4e0b\u8f7d\u5230\u5f00\u53d1\u677f\u4e2d\u540e&#xff0c;\u7b49\u5f85\u548c\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5\u540e&#xff0c;\u53ef\u4ee5\u4ece\u670d\u52a1\u5668\u7684\u65e5\u5fd7\u4fe1\u606f\u4e2d\u67e5\u770b\u5230\u5f00\u53d1\u677f\u53d1\u5e03\u7684\u6e29\u6e7f\u5ea6\u6570\u636e\u3002<\/p>\n<table>\n<tr>\u6d88\u606f\u683c\u5f0f\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>{\u201cdev\u201d:\u201clamp1\u201d,\u201cstatus\u201d:\u201c1\u201d}<\/td>\n<td>\u70b9\u4eaeLED1,\u540e\u9762\u7684status\u6539\u4e3a0\u5219\u7184\u706d\u5b83dev\u6709\u591a\u4e2a\u53d6\u503c&#xff1a;lamp1,lamp2,lamp3<\/td>\n<\/tr>\n<tr>\n<td>{\u201cdev\u201d:\u201cfan\u201d,\u201cstatus\u201d:\u201c1\u201d}<\/td>\n<td>\u8f6c\u52a8\u98ce\u6247,\u540e\u9762\u7684status\u6539\u4e3a0\u5219\u505c\u6b62\u5b83<\/td>\n<\/tr>\n<tr>\n<td>{\u201cdev\u201d:\u201chome\u201d,\u201cstatus\u201d:\u201c1\u201d}<\/td>\n<td>\u79bb\u5f00\u4e86\u5bb6&#xff0c;\u540e\u9762\u7684status\u6539\u4e3a0\u5219\u8868\u793a\u56de\u5bb6<\/td>\n<\/tr>\n<tr>\n<td>{\u201cTemperature\u201d:28,\u201cHumidity\u201d:88}<\/td>\n<td>\u4e0a\u62a5\u6e29\u5ea6\u3001\u6e7f\u5ea6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f00\u53d1\u677f\u548c\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\u7684\u6d88\u606f\u683c\u5f0f\u5982\u4e0a\u8868\u6240\u793a&#xff0c;\u5728\u670d\u52a1\u5668\u53d1\u5e03\u63a7\u5236\u6d88\u606f&#xff0c;\u5f00\u53d1\u677f\u5c31\u4f1a\u505a\u51fa\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12213dndiyid0.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u670d\u52a1\u5668\u4e0a\u53d1\u5e03\u4e00\u4e2a\u8fd9\u6837\u7684\u6d88\u606f&#xff0c;\u5f00\u53d1\u677f\u4e0a\u7684\u6240\u6709LED\u706f\u90fd\u4f1a\u4eae&#xff0c;\u5e76\u4e14\u98ce\u6247\u4e5f\u4f1a\u5f00\u59cb\u8f6c\u52a8&#xff0c;\u6700\u540e\u9762\u672c\u55b5\u4f1a\u4e0a\u4f20\u6548\u679c\u56fe\u3002<\/p>\n<h2>&#x1f3c0;\u5c0f\u7a0b\u5e8f\u63a7\u5236\u5916\u8bbe<\/h2>\n<p>\u8fd9\u91cc\u672c\u55b5\u4f7f\u7528\u767e\u95ee\u7f51\u7684\u5c0f\u7a0b\u5e8f\u548c\u670d\u52a1\u5668\u6765\u63a7\u5236\u5f00\u53d1\u677f\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12gi1n3rlpxfa.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728mqtt_sample.c\u6587\u4ef6\u4e2d\u5b9a\u4e49\u767e\u95ee\u7f51\u7684\u4e09\u5143\u7ec4&#xff0c;\u4e0d\u7528\u5b9a\u4e49\u5ba2\u6237\u7aefID&#xff0c;\u6240\u4ee5\u8981\u5c06\u524d\u9762\u6ce8\u91ca\u6389\u7684\u968f\u673aID\u4fee\u6539\u56de\u6765\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-125rgvz4oh1im.png\" alt=\"\u56fe\" \/> \u5728main.c\u4e2d&#xff0c;\u5c06\u53d1\u5e03\u6d88\u606f\u7684\u4e3b\u9898\u4fee\u6539\u4e3a\/topic\/humiture&#xff0c;\u5176\u4ed6\u7684\u4e0d\u7528\u52a8\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-120bqt52akbpa.png\" alt=\"\u56fe\" \/> \u5c06\u7a0b\u5e8f\u7f16\u8bd1\u5b8c\u6210\u540e\u4e0b\u8f7d\u5230\u5f00\u53d1\u677f\u4e2d&#xff0c;\u6b64\u65f6\u5f00\u53d1\u677f\u5ba2\u6237\u7aef\u5c31\u4f1a\u81ea\u52a8\u548c\u767e\u95ee\u7f51\u7684\u670d\u52a1\u5668\u76f8\u8fde\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-125zjdhmsoeer.png\" alt=\"tu \" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u5728\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4e2d\u641c\u7d22\u767e\u95ee\u7f51\u5d4c\u5165\u5f0f\u7269\u8054\u7f51&#xff0c;\u9009\u62e9\u53cc\u67b6\u6784&#xff0c;\u7136\u540e\u5c31\u4f1a\u51fa\u73b0\u8fd9\u6837\u4e00\u4e2a\u9875\u9762\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\u8ba9\u5c0f\u7a0b\u5e8f\u8fde\u63a5\u670d\u52a1\u5668&#xff0c;\u7b2c\u4e8c\u90e8\u8ba2\u9605\/topic\/humiture\u4e3b\u9898&#xff0c;\u8fd9\u4e2a\u4e3b\u9898\u5fc5\u987b\u548c\u5f00\u53d1\u677f\u53d1\u5e03\u7684\u4e3b\u9898\u4e00\u6837\u3002<\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u63a5\u6536\u5230\u5f00\u53d1\u677f\u53d1\u6765\u7684\u6e29\u6e7f\u5ea6\u6570\u636e&#xff0c;\u5982\u7eff\u8272\u6846\u4e2d\u7684\u5185\u5bb9\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12vx1hj5oxhnt.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe&#xff0c;\u70b9\u51fb\u8fd9\u51e0\u4e2a\u56fe\u5f62\u5316\u6309\u94ae\u5c31\u4f1a\u53d1\u5e03\u76f8\u5e94\u7684\/topic\/ctrl&#xff0c;\u8be5\u4e3b\u9898\u662f\u5f00\u53d1\u677f\u8ba2\u9605\u7684\u4e3b\u9898\u3002<\/p>\n<p>\u6e29\u6e7f\u5ea6\u56fe\u6807\u65e0\u6cd5\u70b9\u51fb&#xff0c;\u5b83\u4ec5\u663e\u793a\u5f00\u53d1\u677f\u53d1\u5e03\u7684\u6e29\u6e7f\u5ea6\u6570\u636e\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12hzvvuwq20aj.png\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u70b9\u51fb\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u6309\u94ae&#xff0c;\u5f00\u53d1\u677f\u7684\u4e32\u53e3\u52a9\u624b\u5c31\u4f1a\u63a5\u6536\u5230\u8ba2\u9605\u7684\u63a7\u5236\u4e3b\u9898\u6d88\u606f&#xff0c;\u5e76\u4e14\u505a\u51fa\u76f8\u5e94\u7684\u63a7\u5236\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-05-12k51iihyesue.jpg\" alt=\"\u56fe\" \/> \u5982\u4e0a\u56fe&#xff0c;\u6b64\u65f6\u5f00\u53d1\u677f\u4e0a\u7684\u706f\u5c31\u4eae\u4e86\u3002<\/p>\n<h2>&#x1f3c0;\u603b\u7ed3<\/h2>\n<p>\u5728\u6574\u4e2a\u667a\u80fd\u5bb6\u5c45\u5b9e\u73b0\u7684\u8fc7\u7a0b\u4e2d&#xff0c;\u672c\u55b5\u81ea\u5df1\u6839\u672c\u5c31\u6ca1\u6709\u5199\u591a\u5c11\u4ee3\u7801&#xff0c;\u5c24\u5176\u662f\u9a71\u52a8\u5c42\u7684\u4ee3\u7801&#xff0c;\u5c31\u6ca1\u6709\u5199\u8fc7&#xff0c;\u5168\u90e8\u7528\u7684\u662fRT-Thread\u7684\u8f6f\u4ef6\u5305\u548c\u7ec4\u4ef6\u3002\u8fd9\u5c31\u662fRT-Thread\u7684\u5f3a\u5927\u4e4b\u5904&#xff0c;\u5b83\u53ef\u4ee5\u5c4f\u853d\u5e95\u5c42\u7684\u7ec6\u8282&#xff0c;\u8ba9\u6211\u4eec\u6ce8\u91cd\u4e8e\u4e0a\u5c42\u5e94\u7528\u7684\u5f00\u53d1\u3002<\/p>\n<p>\u8fd9\u79cd\u901a\u8fc7\u670d\u52a1\u5668\u6765\u5b9e\u73b0\u667a\u80fd\u5bb6\u5c45&#xff0c;\u4e0d\u518d\u50cfFreeRTOS\u4e00\u6837\u5c0f\u7a0b\u5e8f\u548c\u5f00\u53d1\u677f\u5fc5\u987b\u5904\u4e8e\u540c\u4e00\u4e2a\u5c40\u57df\u7f51\u4e2d&#xff0c;\u6b64\u65f6\u5f00\u53d1\u677f\u548c\u5c0f\u7a0b\u5e8f\u53ef\u4ee5\u5904\u4e8e\u4efb\u610f\u4e00\u4e2a\u5c40\u57df\u7f51\u4e2d\u3002<\/p>\n<ul>\n<li>\u5f00\u53d1\u677f\u548c\u5c0f\u7a0b\u5e8f\u8ba2\u9605\u4ee5\u53ca\u53d1\u5e03\u7684\u6d88\u606f\u662f\u901a\u8fc7\u670d\u52a1\u5668\u8fdb\u884c\u8f6c\u53d1\u7684\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.3k\u6b21\uff0c\u70b9\u8d5e79\u6b21\uff0c\u6536\u85cf116\u6b21\u3002\u4ecb\u7ecd\u4e86RT-Thread\u5982\u4f55\u901a\u8fc7\u6dfb\u52a0\u8f6f\u4ef6\u5305\u548c\u7ec4\u4ef6\u6765\u5feb\u901f\u5b9e\u73b0\u4e00\u4e2a\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\uff0c\u4ee5\u53ca\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528MQTT\u534f\u8bae\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\u7b49\u5185\u5bb9\u3002_rt-thread dth11\u83b7\u53d6\u6e29\u6e7f\u5ea6<\/p>\n","protected":false},"author":2,"featured_media":36704,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[751,174,2115,3165],"topic":[],"class_list":["post-36724","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-arm","tag-c","tag-2115","tag-3165"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe - \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\/36724.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.3k\u6b21\uff0c\u70b9\u8d5e79\u6b21\uff0c\u6536\u85cf116\u6b21\u3002\u4ecb\u7ecd\u4e86RT-Thread\u5982\u4f55\u901a\u8fc7\u6dfb\u52a0\u8f6f\u4ef6\u5305\u548c\u7ec4\u4ef6\u6765\u5feb\u901f\u5b9e\u73b0\u4e00\u4e2a\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\uff0c\u4ee5\u53ca\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528MQTT\u534f\u8bae\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\u7b49\u5185\u5bb9\u3002_rt-thread dth11\u83b7\u53d6\u6e29\u6e7f\u5ea6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36724.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-11T18:01:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180151-6820e60fc3fa0.jpg\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36724.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36724.html\",\"name\":\"\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-11T18:01:57+00:00\",\"dateModified\":\"2025-05-11T18:01:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36724.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36724.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36724.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe\"}]},{\"@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":"\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe - \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\/36724.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb4.3k\u6b21\uff0c\u70b9\u8d5e79\u6b21\uff0c\u6536\u85cf116\u6b21\u3002\u4ecb\u7ecd\u4e86RT-Thread\u5982\u4f55\u901a\u8fc7\u6dfb\u52a0\u8f6f\u4ef6\u5305\u548c\u7ec4\u4ef6\u6765\u5feb\u901f\u5b9e\u73b0\u4e00\u4e2a\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\uff0c\u4ee5\u53ca\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528MQTT\u534f\u8bae\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\u7b49\u5185\u5bb9\u3002_rt-thread dth11\u83b7\u53d6\u6e29\u6e7f\u5ea6","og_url":"https:\/\/www.wsisp.com\/helps\/36724.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-11T18:01:57+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511180151-6820e60fc3fa0.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/36724.html","url":"https:\/\/www.wsisp.com\/helps\/36724.html","name":"\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-11T18:01:57+00:00","dateModified":"2025-05-11T18:01:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36724.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36724.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36724.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u3011RT-Thread\u7248\u672c\u2014\u2014DHT11\u83b7\u53d6\u6e29\u6e7f\u5ea6 | MQTT\u4e0a\u4f20\u5230\u670d\u52a1\u5668 | \u670d\u52a1\u5668\u63a7\u5236\u5916\u8bbe"}]},{"@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\/36724","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=36724"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36724\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/36704"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36724"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}