{"id":21249,"date":"2025-04-19T04:23:07","date_gmt":"2025-04-18T20:23:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/21249.html"},"modified":"2025-04-19T04:23:07","modified_gmt":"2025-04-18T20:23:07","slug":"esp8266-%e8%bf%9e%e6%8e%a5-mqtt-%e6%9c%8d%e5%8a%a1%e5%99%a8emqx-%e8%bf%9e%e6%8e%a5mqttx","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/21249.html","title":{"rendered":"ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"-toc\" style=\"margin-left:0px\">\n<p id=\"1.%E5%85%88%E7%94%A8%E6%9C%89%E4%B8%80%E5%8F%B0%E8%87%AA%E5%B7%B1%E7%9A%84%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:0px\">1.\u5148\u7528\u6709\u4e00\u53f0\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668<\/p>\n<p id=\"2.%C2%A0%E4%BD%BF%E7%94%A8FinalShell%E8%BF%9E%E6%8E%A5%E9%98%BF%E9%87%8C%E4%BA%91%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8ECS-toc\" style=\"margin-left:0px\">2.\u00a0\u4f7f\u7528FinalShell\u8fde\u63a5\u963f\u91cc\u4e91\u4e91\u670d\u52a1\u5668ECS<\/p>\n<p id=\"3.%E5%AE%89%E8%A3%85%E5%AE%9D%E5%A1%94-toc\" style=\"margin-left:0px\">3.\u5b89\u88c5\u5b9d\u5854<\/p>\n<p id=\"4.%E5%9C%A8%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%89%93%E5%BC%808888%E7%AB%AF%E5%8F%A3-toc\" style=\"margin-left:0px\">4.\u5728\u4e91\u670d\u52a1\u5668\u6253\u5f008888\u7aef\u53e3<\/p>\n<p id=\"5.%E4%BD%BF%E7%94%A8%E5%A4%96%E7%BD%91%E9%9D%A2%E6%9D%BF%E5%9C%B0%E5%9D%80%E6%89%93%E5%BC%80%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF-toc\" style=\"margin-left:0px\">5.\u4f7f\u7528\u5916\u7f51\u9762\u677f\u5730\u5740\u6253\u5f00\u5b9d\u5854\u9762\u677f<\/p>\n<p id=\"6.%E5%AE%89%E8%A3%85Docker-toc\" style=\"margin-left:0px\">6.\u5b89\u88c5Docker<\/p>\n<p id=\"-toc\" style=\"margin-left:0px\">\n<p id=\"7.%E4%B8%8B%E8%BD%BDemqx-toc\" style=\"margin-left:0px\">7.\u4e0b\u8f7demqx<\/p>\n<p id=\"8.%E6%89%93%E5%BC%80emqxWeb%20%E7%95%8C%E9%9D%A2-toc\" style=\"margin-left:0px\">8.\u6253\u5f00emqxWeb \u754c\u9762<\/p>\n<p id=\"9.%E4%B8%8B%E8%BD%BDMQTTX-toc\" style=\"margin-left:0px\">9.\u4e0b\u8f7dMQTTX<\/p>\n<p id=\"10.EMQX%E5%8A%A0%E4%B8%80%E4%B8%AA%E5%AE%A2%E6%88%B7%E7%AB%AF-toc\" style=\"margin-left:0px\">10.EMQX\u52a0\u4e00\u4e2a\u5ba2\u6237\u7aef<\/p>\n<p id=\"11.%E5%BC%80%E5%A7%8B%E9%80%9A%E4%BF%A1-toc\" style=\"margin-left:0px\">11.\u5f00\u59cb\u901a\u4fe1<\/p>\n<p id=\"12.%E5%8A%A0%E5%85%A5%E5%8D%95%E7%89%87%E6%9C%BAESP8266-toc\" style=\"margin-left:0px\">12.\u52a0\u5165\u5355\u7247\u673aESP8266<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"1.%E5%85%88%E7%94%A8%E6%9C%89%E4%B8%80%E5%8F%B0%E8%87%AA%E5%B7%B1%E7%9A%84%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8\">1.\u5148\u7528\u6709\u4e00\u53f0\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668<\/h2>\n<p>\u6211\u4f7f\u7528\u7684\u662f\u963f\u91cc\u4e91\u670d\u52a1\u5668ECS<\/p>\n<p>\u963f\u91cc\u4e91https:\/\/www.aliyun.com\/?spm&#061;5176.29188366.J_4VYgf18xNlTAyFFbOuOQe.2.2ed63e4dKVYu9u<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"859\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202255-6802b49f75576.png\" width=\"1200\" \/><\/p>\n<h2 id=\"2.%C2%A0%E4%BD%BF%E7%94%A8FinalShell%E8%BF%9E%E6%8E%A5%E9%98%BF%E9%87%8C%E4%BA%91%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8ECS\">2.\u00a0\u4f7f\u7528FinalShell\u8fde\u63a5\u963f\u91cc\u4e91\u4e91\u670d\u52a1\u5668ECS<\/h2>\n<\/p>\n<p>\u5728\u4e91\u670d\u52a1\u5668\u7ba1\u7406\u63a7\u5236\u53f0\u91cc\u9762&#xff0c;\u70b9\u51fb\u5b9e\u4f8b&#xff0c;\u7136\u540e\u70b9\u51fb\u66f4\u591a\u64cd\u4f5c<\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"862\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202256-6802b4a0167f2.png\" width=\"1200\" \/><\/p>\n<p>\u7136\u540e\u70b9\u51fb\u91cd\u7f6e\u5b9e\u4f8b\u5bc6\u7801<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"843\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202256-6802b4a0ec906.png\" width=\"1200\" \/><\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"676\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202257-6802b4a1c5e32.png\" width=\"718\" \/><\/p>\n<p>\u4fee\u6539\u5b8c\u5bc6\u7801\u91cd\u542f\u4e00\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"744\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202257-6802b4a1eed50.png\" width=\"1200\" \/><\/p>\n<p>\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"609\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202258-6802b4a2c2010.png\" width=\"1200\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"361\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202259-6802b4a33cdd6.png\" width=\"790\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"676\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202259-6802b4a3676ce.png\" width=\"722\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"832\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202259-6802b4a38c8ee.png\" width=\"1200\" \/><\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u8fde\u63a5\u4e86<\/p>\n<p>\u5982\u679c\u4e0d\u884c\u7684\u8bdd&#xff0c;\u5c31<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"895\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202300-6802b4a46305a.png\" width=\"1200\" \/><\/p>\n<p>\u7ba1\u7406\u89c4\u5219&#xff0c;\u5165\u65b9\u5411&#xff0c;\u5feb\u901f\u6dfb\u52a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"821\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202301-6802b4a540e6d.png\" width=\"1200\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"405\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202302-6802b4a61997f.png\" width=\"854\" \/><\/p>\n<p>\u7136\u540e\u91cd\u542f\u5b9e\u4f8b&#xff0c;\u518d\u91cd\u65b0\u8fde\u63a5\u5c31\u53ef\u4ee5\u4e86<\/p>\n<h2 id=\"3.%E5%AE%89%E8%A3%85%E5%AE%9D%E5%A1%94\">3.\u5b89\u88c5\u5b9d\u5854<\/h2>\n<p>\u70b9\u51fb \u5b9d\u5854\u7f51\u7ad9<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"777\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202302-6802b4a652a74.png\" width=\"1200\" \/><\/p>\n<p>\u9009\u62e9Linux<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"692\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202302-6802b4a6e4954.png\" width=\"1200\" \/><\/p>\n<p>url&#061;https:\/\/download.bt.cn\/install\/install_lts.sh;if [ -f \/usr\/bin\/curl ];then curl -sSO $url;else wget -O install_lts.sh $url;fi;bash install_lts.sh ed8484bec <\/p>\n<p>\u7136\u540e\u6253\u5f00\u5728finalshell\u91cc\u9762\u8f93\u5165\u8fd9\u53e5\u4ee3\u7801&#xff0c;\u5c31\u53ef\u4ee5\u5b89\u88c5\u5b9d\u5854\u4e86<\/p>\n<p>\u5b89\u88c5\u5b8c\u7ed3\u5c3e\u4f1a\u6709\u4e00\u5927\u4e32\u4fe1\u606f<\/p>\n<p>\u8bb0\u4f4f\u9762\u677f\u8d26\u6237\u767b\u5f55\u4fe1\u606f<\/p>\n<p>\u00a0\u5916\u7f51\u9762\u677f\u5730\u5740:\u00a0 \u00a0\u5185\u7f51\u9762\u677f\u5730\u5740:\u00a0 \u00a0username:\u00a0 \u00a0password:\u00a0<\/p>\n<h2 id=\"4.%E5%9C%A8%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%89%93%E5%BC%808888%E7%AB%AF%E5%8F%A3\">4.\u5728\u4e91\u670d\u52a1\u5668\u6253\u5f008888\u7aef\u53e3<\/h2>\n<p>\u56e0\u4e3a\u5b9d\u5854\u7528\u7684\u662f8888\u7aef\u53e3\u00a0 \u00a0&#xff08;\u770b\u81ea\u5df1\u5b89\u88c5\u5b8c\u5b9d\u5854\u540e\u51fa\u73b0\u7684\u4fe1\u606f&#xff0c;\u53eb\u4f60\u653e\u884c\u54ea\u4e2a\u5b89\u5168\u7ec4\u7aef\u53e3&#xff09;<\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"289\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202303-6802b4a7458e9.png\" width=\"1200\" \/><\/p>\n<\/p>\n<\/p>\n<h2 id=\"5.%E4%BD%BF%E7%94%A8%E5%A4%96%E7%BD%91%E9%9D%A2%E6%9D%BF%E5%9C%B0%E5%9D%80%E6%89%93%E5%BC%80%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF\">5.\u4f7f\u7528\u5916\u7f51\u9762\u677f\u5730\u5740\u6253\u5f00\u5b9d\u5854\u9762\u677f<\/h2>\n<p>\u9996\u6b21\u8fdb\u5165&#xff0c;\u6839\u636e\u63d0\u793a\u505a\u5427&#xff0c;\u6839\u636e\u81ea\u5df1\u4fdd\u5b58\u7684\u4fe1\u606f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"952\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202303-6802b4a79ad4e.png\" width=\"1200\" \/><\/p>\n<h2 id=\"6.%E5%AE%89%E8%A3%85Docker\">6.\u5b89\u88c5Docker<\/h2>\n<p>\u70b9\u51fb\u5c31\u884c\u4e86&#xff0c;\u5f88\u7b80\u5355\u7684<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"934\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202304-6802b4a848236.png\" width=\"1200\" \/><\/p>\n<h2><\/h2>\n<h2 id=\"7.%E4%B8%8B%E8%BD%BDemqx\" style=\"background-color:transparent\">7.\u4e0b\u8f7demqx<\/h2>\n<p>\u70b9\u5c31\u884c\u4e86&#xff0c;\u5f88\u7b80\u5355\u7684<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"776\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202304-6802b4a8e6b03.png\" width=\"1200\" \/><\/p>\n<h2 id=\"8.%E6%89%93%E5%BC%80emqxWeb%20%E7%95%8C%E9%9D%A2\" style=\"background-color:transparent\">8.\u6253\u5f00emqxWeb \u754c\u9762<\/h2>\n<p>\u4f60\u7684\u00a0 \u00a0\u5728\u6d4f\u89c8\u5668\u4e0a\u8bbf\u95ee\u00a0 \u00a0 \u4f60\u7684ip&#043;18083<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"894\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202305-6802b4a97bdfa.png\" width=\"1200\" \/><\/p>\n<p>\u7136\u540e\u8fdb\u5165<\/p>\n<p>ip:18083\u00a0<\/p>\n<p>\u5982\u679c\u8fdb\u5165\u4e0d\u4e86&#xff0c;\u5c31\u53bb\u670d\u52a1\u5668\u90a3\u91cc\u653e\u884c18083\u7aef\u53e3&#xff0c;\u90fd\u5e94\u8be5\u4f1a\u4e86\u5427<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"850\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202306-6802b4aa248d0.png\" width=\"1200\" \/><\/p>\n<h2 id=\"9.%E4%B8%8B%E8%BD%BDMQTTX\">9.\u4e0b\u8f7dMQTTX<\/h2>\n<p>\u8fd9\u4e2a\u4e0b\u4e0d\u4e0b\u90fd\u53ef\u4ee5\u5427&#xff0c;\u53ea\u662f\u53ef\u4ee5\u6a21\u62df\u4e00\u4e2a\u5ba2\u6237\u7aef<\/p>\n<p>https:\/\/mqttx.app\/zh\/downloads<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"893\" src=\"2025-04-19jxgfbpn1eyi.png\" width=\"1200\" \/><\/p>\n<p>\u76f4\u63a5\u65e0\u8111\u4e0b\u5c31\u53ef\u4ee5\u4e86&#xff0c;\u7136\u540e\u6253\u5f00<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"505\" src=\"2025-04-19xupfmxtl3pb.png\" width=\"445\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"906\" src=\"2025-04-19iys3kwk0ivq.png\" width=\"1200\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"807\" src=\"2025-04-19uedmkxwfu2h.png\" width=\"1200\" \/><\/p>\n<p>\u8981\u662f\u4e0d\u884c\u7684\u8bdd&#xff0c;\u5c31\u53bb\u670d\u52a1\u5668\u653e\u884c1883\u7aef\u53e3<\/p>\n<h2 id=\"10.EMQX%E5%8A%A0%E4%B8%80%E4%B8%AA%E5%AE%A2%E6%88%B7%E7%AB%AF\">10.EMQX\u52a0\u4e00\u4e2a\u5ba2\u6237\u7aef<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"677\" src=\"2025-04-19yyobkizrcqq.png\" width=\"889\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"615\" src=\"2025-04-19qwtuugbplue.png\" width=\"1200\" \/><\/p>\n<h2 id=\"11.%E5%BC%80%E5%A7%8B%E9%80%9A%E4%BF%A1\">11.\u5f00\u59cb\u901a\u4fe1<\/h2>\n<p>\u53ef\u4ee5\u770b\u5230\u8fde\u63a5\u6570\u5df2\u7ecf\u662f2\u4e86&#xff0c;\u4e00\u4e2a\u662f\u5728EMQX\u7f51\u9875\u7684\u5ba2\u6237\u7aef&#xff0c;\u4e00\u4e2a\u662f\u4f60\u4e0b\u8f7d\u7684MQTTX\u7684\u5ba2\u6237\u7aef<\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"760\" src=\"2025-04-192cf1uupore1.png\" width=\"1200\" \/><\/p>\n<p>\u5728EMQX\u5ba2\u6237\u7aef\u8bbe\u7f6e\u53d1\u5e03\u548c\u8ba2\u9605\u7684\u4e3b\u9898\u90fd\u4e3atopic<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"438\" src=\"2025-04-19y1usqxsdtqm.png\" width=\"839\" \/><\/p>\n<p>\u5728MQTTX\u8bbe\u7f6e\u4e3b\u9898\u4e0e\u53d1\u5e03\u7684\u5185\u5bb9<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"982\" src=\"2025-04-19f2mi4gxjddj.png\" width=\"1200\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"954\" src=\"2025-04-19tnoew0gxox0.png\" width=\"1200\" \/><\/p>\n<p>\u53d1\u9001\u540e&#xff0c;\u5728web\u7aef\u63a5\u6536\u6210\u529f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"871\" src=\"2025-04-19brek5iwgwbi.png\" width=\"1200\" \/><\/p>\n<p>\u5728web\u7aef\u53d1\u9001&#xff0c;\u5728MQTTX\u7aef\u63a5\u6536<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"759\" src=\"2025-04-19tpn0sptw1qy.png\" width=\"1200\" \/><\/p>\n<\/p>\n<p>\u5728MQTTX\u4e5f\u53ef\u4ee5\u6210\u529f\u63a5\u6536<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"860\" src=\"2025-04-19n1pi0v1acpb.png\" width=\"1200\" \/><\/p>\n<p>\u6210\u529f\u4e86<\/p>\n<h2 id=\"12.%E5%8A%A0%E5%85%A5%E5%8D%95%E7%89%87%E6%9C%BAESP8266\">12.\u52a0\u5165\u5355\u7247\u673aESP8266<\/h2>\n<p>\u5f00\u53d1\u677f\u662f\u8fd9\u4e2a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"560\" src=\"2025-04-19os1v3buspla.png\" width=\"511\" \/><\/p>\n<p>\u5355\u7247\u673a\u4ee3\u7801\u5982\u4e0b<\/p>\n<p>#include &lt;ESP8266WiFi.h&gt;<br \/>\n#include &lt;PubSubClient.h&gt;<\/p>\n<p>const int ledPin &#061; D8; \/\/ LED\u8fde\u63a5\u5230\u7684GPIO\u5f15\u811a<\/p>\n<p>const char* ssid &#061; &#034;wifi\u540d\u5b57&#034;;<br \/>\nconst char* password &#061; &#034;wifi\u5bc6\u7801&#034;;<br \/>\nconst char* mqtt_server_ip &#061; &#034;\u4f60\u81ea\u5df1\u7684ip&#034;; \/\/ \u76f4\u63a5\u4f7f\u7528 IP \u5730\u5740<br \/>\nconst int mqtt_port &#061; 1883;<br \/>\nconst char* mqtt_client_id &#061; &#034;pc&#034;;<br \/>\nconst char* mqtt_user &#061; &#034;\u4f60EMQX\u8bbe\u7f6e\u7684\u7528\u6237\u540d&#xff08;\u5982\u679c\u6709&#xff09;&#034;;<br \/>\nconst char* mqtt_password &#061; &#034;\u5bc6\u7801&#034;; <\/p>\n<p>WiFiClient espClient;<br \/>\nPubSubClient client(espClient);<\/p>\n<p>void callback(char* topic, byte* payload, unsigned int length);<\/p>\n<p>void setup() {<br \/>\n  Serial.begin(9600);<br \/>\n  Serial.println(&#034;Connecting to WiFi&#034;);<\/p>\n<p>  \/\/ \u8bbe\u7f6eD8\u5f15\u811a\u4e3a\u8f93\u51fa\u6a21\u5f0f<br \/>\n  pinMode(ledPin, OUTPUT);<\/p>\n<p>  WiFi.begin(ssid, password);<\/p>\n<p>  while (WiFi.status() !&#061; WL_CONNECTED) {<br \/>\n    delay(500);<br \/>\n    Serial.print(&#034;.&#034;);<br \/>\n  }<\/p>\n<p>  Serial.println(&#034;&#034;);<br \/>\n  Serial.println(&#034;WiFi connected&#034;);<br \/>\n  Serial.print(&#034;IP address: &#034;);<br \/>\n  Serial.println(WiFi.localIP());<\/p>\n<p>  client.setServer(mqtt_server_ip, mqtt_port); \/\/ \u4f7f\u7528 IP \u5730\u5740\u4ee3\u66ff\u57df\u540d<br \/>\n  client.setCallback(callback);<\/p>\n<p>  \/\/ \u5c1d\u8bd5\u8fde\u63a5\u5230 MQTT \u670d\u52a1\u5668<br \/>\n  while (!client.connect(mqtt_client_id, mqtt_user, mqtt_password)) {<br \/>\n    Serial.println(&#034;Failed to connect to MQTT server, retrying&#8230;&#034;);<br \/>\n    delay(5000); \/\/ \u91cd\u8bd5\u8fde\u63a5\u524d\u7b49\u5f855\u79d2<br \/>\n  }<\/p>\n<p>  Serial.println(&#034;Connected to MQTT server&#034;);<br \/>\n  client.subscribe(&#034;topic&#034;);  \/\/\u4f60\u81ea\u5df1\u8ba2\u9605\u7684\u4e3b\u9898<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n  if (!client.connected()) {<br \/>\n    Serial.println(&#034;Reconnecting to MQTT server&#8230;&#034;);<br \/>\n    while (!client.connect(mqtt_client_id, mqtt_user, mqtt_password)) {<br \/>\n      delay(5000); \/\/ \u91cd\u8bd5\u8fde\u63a5\u524d\u7b49\u5f855\u79d2<br \/>\n    }<br \/>\n    Serial.println(&#034;Connected to MQTT server&#034;);<br \/>\n    client.subscribe(&#034;led&#034;);<br \/>\n  }<\/p>\n<p>  client.loop();<br \/>\n}<\/p>\n<p>void callback(char* topic, byte* payload, unsigned int length) {<br \/>\n  Serial.print(&#034;Message arrived [&#034;);<br \/>\n  Serial.print(topic);<br \/>\n  Serial.print(&#034;] &#034;);<\/p>\n<p>  char message[length &#043; 1];<br \/>\n  for (int i &#061; 0; i &lt; length; i&#043;&#043;) {<br \/>\n    message[i] &#061; (char)payload[i];<br \/>\n  }<br \/>\n  message[length] &#061; &#039;\\\\0&#039;;<\/p>\n<p>  Serial.println(message);<\/p>\n<p>} <\/p>\n<p>\u63a5\u5165\u5355\u7247\u673a&#xff0c;\u6253\u5f00\u4e32\u53e3<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"637\" src=\"2025-04-19k3zzxynfg5j.png\" width=\"651\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"921\" src=\"2025-04-19vtb2af3ysmq.png\" width=\"1200\" \/><\/p>\n<p>\u5ba2\u6237\u7aef\u53d1\u9001&#xff0c;esp8266\u63a5\u6536<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"813\" src=\"2025-04-19b4szopxxehm.png\" width=\"1200\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"957\" src=\"2025-04-19ktl5guivy5o.png\" width=\"1200\" \/><\/p>\n<p>esp8266\u6210\u529f\u63a5\u6536<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.3k\u6b21\uff0c\u70b9\u8d5e41\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u53ef\u4ee5\u770b\u5230\u8fde\u63a5\u6570\u5df2\u7ecf\u662f2\u4e86\uff0c\u4e00\u4e2a\u662f\u5728EMQX\u7f51\u9875\u7684\u5ba2\u6237\u7aef\uff0c\u4e00\u4e2a\u662f\u4f60\u4e0b\u8f7d\u7684MQTTX\u7684\u5ba2\u6237\u7aef\u3002\u7136\u540e\u6253\u5f00\u5728finalshell\u91cc\u9762\u8f93\u5165\u8fd9\u53e5\u4ee3\u7801\uff0c\u5c31\u53ef\u4ee5\u5b89\u88c5\u5b9d\u5854\u4e86\u3002\u5982\u679c\u8fdb\u5165\u4e0d\u4e86\uff0c\u5c31\u53bb\u670d\u52a1\u5668\u90a3\u91cc\u653e\u884c18083\u7aef\u53e3\uff0c\u90fd\u5e94\u8be5\u4f1a\u4e86\u5427\u3002\u5728\u4e91\u670d\u52a1\u5668\u7ba1\u7406\u63a7\u5236\u53f0\u91cc\u9762\uff0c\u70b9\u51fb\u5b9e\u4f8b\uff0c\u7136\u540e\u70b9\u51fb\u66f4\u591a\u64cd\u4f5c\u3002\u9996\u6b21\u8fdb\u5165\uff0c\u6839\u636e\u63d0\u793a\u505a\u5427\uff0c\u6839\u636e\u81ea\u5df1\u4fdd\u5b58\u7684\u4fe1\u606f\u3002\u8fd9\u4e2a\u4e0b\u4e0d\u4e0b\u90fd\u53ef\u4ee5\u5427\uff0c\u53ea\u662f\u53ef\u4ee5\u6a21\u62df\u4e00\u4e2a\u5ba2\u6237\u7aef\u3002\u5728web\u7aef\u53d1\u9001\uff0c\u5728MQTTX\u7aef\u63a5\u6536\u3002\u76f4\u63a5\u65e0\u8111\u4e0b\u5c31\u53ef\u4ee5\u4e86\uff0c\u7136\u540e\u6253\u5f00\u3002\u7ba1\u7406\u89c4\u5219\uff0c\u5165\u65b9\u5411\uff0c\u5feb\u901f\u6dfb\u52a0\u3002\u53d1\u9001\u540e\uff0c\u5728web\u7aef\u63a5\u6536\u6210\u529f\u3002\u5728MQTTX\u4e5f\u53ef\u4ee5\u6210\u529f\u63a5\u6536\u3002_esp8266\u8fde\u63a5emqx<\/p>\n","protected":false},"author":2,"featured_media":21229,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-21249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX - \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\/21249.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.3k\u6b21\uff0c\u70b9\u8d5e41\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u53ef\u4ee5\u770b\u5230\u8fde\u63a5\u6570\u5df2\u7ecf\u662f2\u4e86\uff0c\u4e00\u4e2a\u662f\u5728EMQX\u7f51\u9875\u7684\u5ba2\u6237\u7aef\uff0c\u4e00\u4e2a\u662f\u4f60\u4e0b\u8f7d\u7684MQTTX\u7684\u5ba2\u6237\u7aef\u3002\u7136\u540e\u6253\u5f00\u5728finalshell\u91cc\u9762\u8f93\u5165\u8fd9\u53e5\u4ee3\u7801\uff0c\u5c31\u53ef\u4ee5\u5b89\u88c5\u5b9d\u5854\u4e86\u3002\u5982\u679c\u8fdb\u5165\u4e0d\u4e86\uff0c\u5c31\u53bb\u670d\u52a1\u5668\u90a3\u91cc\u653e\u884c18083\u7aef\u53e3\uff0c\u90fd\u5e94\u8be5\u4f1a\u4e86\u5427\u3002\u5728\u4e91\u670d\u52a1\u5668\u7ba1\u7406\u63a7\u5236\u53f0\u91cc\u9762\uff0c\u70b9\u51fb\u5b9e\u4f8b\uff0c\u7136\u540e\u70b9\u51fb\u66f4\u591a\u64cd\u4f5c\u3002\u9996\u6b21\u8fdb\u5165\uff0c\u6839\u636e\u63d0\u793a\u505a\u5427\uff0c\u6839\u636e\u81ea\u5df1\u4fdd\u5b58\u7684\u4fe1\u606f\u3002\u8fd9\u4e2a\u4e0b\u4e0d\u4e0b\u90fd\u53ef\u4ee5\u5427\uff0c\u53ea\u662f\u53ef\u4ee5\u6a21\u62df\u4e00\u4e2a\u5ba2\u6237\u7aef\u3002\u5728web\u7aef\u53d1\u9001\uff0c\u5728MQTTX\u7aef\u63a5\u6536\u3002\u76f4\u63a5\u65e0\u8111\u4e0b\u5c31\u53ef\u4ee5\u4e86\uff0c\u7136\u540e\u6253\u5f00\u3002\u7ba1\u7406\u89c4\u5219\uff0c\u5165\u65b9\u5411\uff0c\u5feb\u901f\u6dfb\u52a0\u3002\u53d1\u9001\u540e\uff0c\u5728web\u7aef\u63a5\u6536\u6210\u529f\u3002\u5728MQTTX\u4e5f\u53ef\u4ee5\u6210\u529f\u63a5\u6536\u3002_esp8266\u8fde\u63a5emqx\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/21249.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-18T20:23:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202255-6802b49f75576.png\" \/>\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\/21249.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/21249.html\",\"name\":\"ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T20:23:07+00:00\",\"dateModified\":\"2025-04-18T20:23:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/21249.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/21249.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/21249.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX\"}]},{\"@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":"ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX - \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\/21249.html","og_locale":"zh_CN","og_type":"article","og_title":"ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.3k\u6b21\uff0c\u70b9\u8d5e41\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u53ef\u4ee5\u770b\u5230\u8fde\u63a5\u6570\u5df2\u7ecf\u662f2\u4e86\uff0c\u4e00\u4e2a\u662f\u5728EMQX\u7f51\u9875\u7684\u5ba2\u6237\u7aef\uff0c\u4e00\u4e2a\u662f\u4f60\u4e0b\u8f7d\u7684MQTTX\u7684\u5ba2\u6237\u7aef\u3002\u7136\u540e\u6253\u5f00\u5728finalshell\u91cc\u9762\u8f93\u5165\u8fd9\u53e5\u4ee3\u7801\uff0c\u5c31\u53ef\u4ee5\u5b89\u88c5\u5b9d\u5854\u4e86\u3002\u5982\u679c\u8fdb\u5165\u4e0d\u4e86\uff0c\u5c31\u53bb\u670d\u52a1\u5668\u90a3\u91cc\u653e\u884c18083\u7aef\u53e3\uff0c\u90fd\u5e94\u8be5\u4f1a\u4e86\u5427\u3002\u5728\u4e91\u670d\u52a1\u5668\u7ba1\u7406\u63a7\u5236\u53f0\u91cc\u9762\uff0c\u70b9\u51fb\u5b9e\u4f8b\uff0c\u7136\u540e\u70b9\u51fb\u66f4\u591a\u64cd\u4f5c\u3002\u9996\u6b21\u8fdb\u5165\uff0c\u6839\u636e\u63d0\u793a\u505a\u5427\uff0c\u6839\u636e\u81ea\u5df1\u4fdd\u5b58\u7684\u4fe1\u606f\u3002\u8fd9\u4e2a\u4e0b\u4e0d\u4e0b\u90fd\u53ef\u4ee5\u5427\uff0c\u53ea\u662f\u53ef\u4ee5\u6a21\u62df\u4e00\u4e2a\u5ba2\u6237\u7aef\u3002\u5728web\u7aef\u53d1\u9001\uff0c\u5728MQTTX\u7aef\u63a5\u6536\u3002\u76f4\u63a5\u65e0\u8111\u4e0b\u5c31\u53ef\u4ee5\u4e86\uff0c\u7136\u540e\u6253\u5f00\u3002\u7ba1\u7406\u89c4\u5219\uff0c\u5165\u65b9\u5411\uff0c\u5feb\u901f\u6dfb\u52a0\u3002\u53d1\u9001\u540e\uff0c\u5728web\u7aef\u63a5\u6536\u6210\u529f\u3002\u5728MQTTX\u4e5f\u53ef\u4ee5\u6210\u529f\u63a5\u6536\u3002_esp8266\u8fde\u63a5emqx","og_url":"https:\/\/www.wsisp.com\/helps\/21249.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T20:23:07+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418202255-6802b49f75576.png"}],"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\/21249.html","url":"https:\/\/www.wsisp.com\/helps\/21249.html","name":"ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T20:23:07+00:00","dateModified":"2025-04-18T20:23:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/21249.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/21249.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/21249.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"ESP8266 \u8fde\u63a5 MQTT \u670d\u52a1\u5668EMQX \u8fde\u63a5MQTTX"}]},{"@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\/21249","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=21249"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/21249\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/21229"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=21249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=21249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=21249"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=21249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}