{"id":580,"date":"2020-08-23T13:08:08","date_gmt":"2020-08-23T05:08:08","guid":{"rendered":"https:\/\/easylife.yt\/smarthome\/?p=580"},"modified":"2020-08-23T13:08:10","modified_gmt":"2020-08-23T05:08:10","slug":"diy-%e9%93%81%e5%8d%b7%e9%97%a8%e4%ba%91%e7%ab%af%e6%8e%a7%e5%88%b6%e5%99%a8%e8%bf%9c%e7%ab%af%e5%bc%80%e5%85%b3%e9%93%81%e5%8d%b7%e9%97%a8%ef%bc%88%e4%b8%89%ef%bc%89","status":"publish","type":"post","link":"https:\/\/easylife.yt\/smarthome\/zh-cn\/2020\/08\/580\/","title":{"rendered":"DIY \u94c1\u5377\u95e8\u4e91\u7aef\u63a7\u5236\u5668,\u8fdc\u7aef\u5f00\u5173\u94c1\u5377\u95e8\uff08\u4e09\uff09"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">\u770b\u4e86\u7b2c\u4e00\u7bc7DIY\u4e91\u7aef\u63a7\u5236\u5668\u7684\u4ecb\u7ecd\u4e4b\u540e\uff0c\u60a8\u662f\u4e0d\u662f\u4e5f\u60f3\u81ea\u5df1DIY\u505a\u4e00\u4e2a\u5462\uff01<br>\u6574\u4e2aDIY\u7684\u5236\u4f5c\u8fc7\u7a0b\uff0c\u4e00\u5171\u5206\u6210\u56db\u7bc7\u6587\u7ae0\uff0c\u7b80\u8ff0\u5982\u4e0b\uff1a<br><a href=\"https:\/\/easylife.yt\/smarthome\/zh-cn\/2020\/08\/536\/\" target=\"_blank\" rel=\"noreferrer noopener\">1.\u7b2c\u4e00\u7bc7\u4ecb\u7ecd\u529f\u80fd\u4e0e\u64cd\u4f5c\u65b9\u6cd5\u3002<\/a><br><a href=\"https:\/\/easylife.yt\/smarthome\/zh-cn\/2020\/08\/557\/\" target=\"_blank\" rel=\"noreferrer noopener\">2.\u7b2c\u4e8c\u7bc7\u4ecb\u7ecd\u7535\u8def\u63a5\u6cd5\uff0c\u8fd9\u7bc7\u9700\u8981\u7535\u8def\u677f\u710a\u63a5\u7684\u6280\u80fd\uff0c\u4e5f\u662f\u6211\u89c9\u5f97\u6700\u96be\u7684\u90e8\u5206\u3002<\/a><br>3.\u7b2c\u4e09\u7bc7\uff08\u672c\u7bc7\uff09\u4ecb\u7ecd\u5982\u4f55\u6ce8\u518c\u4e91\u7aef\u5e10\u53f7\u4ee5\u53ca\u4e0b\u8f7d\u4e0e\u4fee\u6539ESP8266\u7684Arduino\u7a0b\u5f0f\u7801\uff0c\u7136\u540e\u70e7\u5f55\u5230ESP8266\uff0c\u8fd9\u90e8\u5206\u4e5f\u4e0d\u96be\uff0c\u6309\u7167\u6b65\u9aa4\u505a\u5c31\u884c\u4e86\u3002<br>4.\u7b2c\u56db\u7bc7\u4ecb\u7ecd\u5982\u4f55\u4fee\u6539Android APP\u7684\u8303\u4f8b\u7a0b\u5f0f\uff0c\u6211\u7528\u7684\u662fAppinventor 2\u6765\u5f00\u53d1\u8fd9\u4e2aAPP\u7684\uff0c\u4fee\u6539\u76f8\u5f53\u7b80\u5355\u5bb9\u6613\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u9996\u5148\u8981\u6ce8\u518cIoT\u7269\u8054\u7f51\u7684\u4e91\u7aef\u8d26\u53f7\uff0c\u8fd9\u91cc\u4f7f\u7528\u7684\u662f<a href=\"http:\/\/demo.thingsboard.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">Thingsboard\u7269\u8054\u7f51<\/a>\u7cfb\u7edf\uff0c\u7533\u8bf7\u6b65\u9aa4\u8bf7\u53c2\u8003\u4ee5\u4e0b\u5f71\u7247\uff0c\u8bb0\u5f97\u8981\u628a\u7533\u8bf7\u7684&#8221;<strong>\u8d26\u53f7<\/strong>&#8220;\uff0f&#8221;<strong>\u5bc6\u7801<\/strong>&#8220;\u4ee5\u53ca&#8221;\u8bbe\u5907\u7684<strong>\u5b58\u53d6\u4ee4\u724c\uff08Token\uff09<\/strong>&#8220;\u8bb0\u4e0b\u6765\u3002<\/p>\n\n\n\n<iframe height=498 width=510 data-src='https:\/\/player.youku.com\/embed\/XNDgxMjQ1NDcxNg==' frameborder=0 'allowfullscreen' src='data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' class='lazyload' data-load-mode='1'><\/iframe>\n\n\n\n<p class=\"has-medium-font-size\">\u7533\u8bf7\u5b8c\u7269\u8054\u7f51\u8d26\u53f7\u540e\uff0c\u63a5\u4e0b\u6765\u5230GitHub\u4e0b\u8f7dESP8266\u7684\u7a0b\u5e8f\u4ee3\u7801\uff0c\u8bf7\u70b9\u51fb\u4ee5\u4e0b\u7f51\u5740<br><a href=\"https:\/\/github.com\/YT-Hung\/esp8266_gpio_control_with_Thingsboard\/tree\/master\/ESP8266ArduinoThingsboard\" target=\"_blank\" rel=\"noreferrer noopener\">\u70b9\u6211\u4e0b\u8f7d\u7a0b\u5e8f\u4ee3\u7801<\/a>\uff0c\u5f00\u542fGitHub\u540e\u7528<strong>\u9f20\u6807\u53f3\u952e<\/strong>\u70b9\u9009\u4e0b\u56fe\u7ea2\u6846\u4f4d\u7f6e\u7684&#8221;ThingsBoard_esp8266-remote-control-sample.ino&#8221;\uff0c\u7136\u540e\u9009\u62e9<strong>\u53e6\u5b58\u8fde\u7ed3\u4e3a<\/strong>\uff0c<br><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"406\" class=\"wp-image-575 lazyload\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/406;width: 800px;\" data-src=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0.jpg\" alt=\"DIY\u9435\u6372\u9580\u96f2\u7aef\u63a7\u5236\u5668\" data-srcset=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0.jpg 1333w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-300x152.jpg 300w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1024x520.jpg 1024w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-768x390.jpg 768w\" data-sizes=\"auto, (max-width: 800px) 100vw, 800px\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" \/><noscript><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"406\" class=\"wp-image-575\" style=\"width: 800px;\" src=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0.jpg\" alt=\"DIY\u9435\u6372\u9580\u96f2\u7aef\u63a7\u5236\u5668\" srcset=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0.jpg 1333w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-300x152.jpg 300w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1024x520.jpg 1024w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-768x390.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/noscript><br>\u5c06\u7a0b\u5e8f\u5b58\u653e\u5230\u684c\u9762\uff0c\u4e0b\u4e00\u6b65\u8981\u523b\u5f55\u5230ESP8266\u8fd9\u5757\u677f\u5b50\u3002<br><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"505\" class=\"wp-image-576 lazyload\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/505;width: 800px;\" data-src=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1.jpg\" alt=\"DIY\u9435\u6372\u9580\u96f2\u7aef\u63a7\u5236\u5668\" data-srcset=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1.jpg 886w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1-300x189.jpg 300w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1-768x485.jpg 768w\" data-sizes=\"auto, (max-width: 800px) 100vw, 800px\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" \/><noscript><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"505\" class=\"wp-image-576\" style=\"width: 800px;\" src=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1.jpg\" alt=\"DIY\u9435\u6372\u9580\u96f2\u7aef\u63a7\u5236\u5668\" srcset=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1.jpg 886w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1-300x189.jpg 300w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-0-1-768x485.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/noscript><\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u7a0b\u5e8f\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u9700\u8981\u7528Arduino\uff08IDE\uff09\u8f6f\u4ef6\u6765\u4fee\u6539\u4e00\u4e0b\u53c2\u6570\uff0c\u7136\u540e\u523b\u5f55\u5230ESP8266\u7684\u677f\u5b50\uff0c\u5982\u679c\u60a8\u719f\u6089\u8fd9\u8f6f\u4ef6\u64cd\u4f5c\u7684\u8bdd\uff0c\u8bf7\u5f00\u542f\u52a0\u8f7d\u521a\u521a\u4e0b\u8f7d\u7684&#8221;ThingsBoard_esp8266-remote-control-sample.ino&#8221;\u7a0b\u5e8f\uff0c\u7136\u540e\u5728\/\/*******\u4e0b\u7684#define\u628a WIFI_AP\u7684\u503c\u6539\u4e3a<strong><span class=\"has-inline-color has-primary-color\">\u4f60\u5bb6\u7684WiFi\u540d\u79f0<\/span><\/strong>\uff0cWIFI_PASSWORD\u7684\u503c\u6539\u4e3a<strong><span class=\"has-inline-color has-primary-color\">\u4f60\u5bb6\u7684WIFI\u5bc6\u7801<\/span><\/strong>\uff0cTOKEN\u7684\u503c\u6539\u4e3a\u672c\u7bc7\u6559\u5b66\u7b2c\u4e00\u6b65\u7533\u8bf7\u7269\u8054\u7f51\u8d26\u53f7\u6240\u5f97\u5230\u7684\u8bbe\u5907<strong><span class=\"has-inline-color has-primary-color\">\u5b58\u53d6\u4ee4\u724c\uff08Token\uff09<\/span><\/strong>\uff08\u5982\u4e0b\u56fe\u6df1\u7eff\u8272\u5b57\u4f53\u7684\u90e8\u5206\uff09\uff0c\u6539\u5b8c\u5b58\u76d8\u7136\u540e\u523b\u5f55\u5230\u677f\u5b50\u5c31\u5b8c\u6210\u4e86\u3002<br>\u677f\u5b50\u523b\u5f55\u7684\u53c2\u6570\u8bbe\u5b9a\u5982\u4e0b\uff1a<br>\u5f00\u53d1\u677f\u7ba1\u7406\u7f51\u5740\uff1ahttp:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json<br>\u5f00\u53d1\u677f\uff1aNodeMCU 1.0<br>\u4e0a\u4f20\u901f\u7387\uff1a115200<br>\u94fe\u63a5\u5e93\u9700\u5b89\u88c5\uff1aArduinoJson v5.13.5 &amp; PubSubClient v2.8<br><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"625\" class=\"wp-image-577 lazyload\" style=\"--smush-placeholder-width: 512px; --smush-placeholder-aspect-ratio: 512\/625;width: 512px;\" data-src=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-32.jpg\" alt=\"DIY\u9435\u6372\u9580\u96f2\u7aef\u63a7\u5236\u5668\" data-srcset=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-32.jpg 486w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-32-246x300.jpg 246w\" data-sizes=\"auto, (max-width: 512px) 100vw, 512px\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" \/><noscript><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"625\" class=\"wp-image-577\" style=\"width: 512px;\" src=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-32.jpg\" alt=\"DIY\u9435\u6372\u9580\u96f2\u7aef\u63a7\u5236\u5668\" srcset=\"https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-32.jpg 486w, https:\/\/easylife.yt\/smarthome\/wp-content\/uploads\/2020\/08\/p32-32-246x300.jpg 246w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/noscript><\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u5982\u679c\u60a8\u5bf9\u4e8eArduino\uff08IDE\uff09\u8f6f\u4ef6\u64cd\u4f5c\u4e0d\u719f\u6089\u7684\u8bdd\uff0c\u8bf7\u53c2\u8003\u4ee5\u4e0b\u5f71\u7247\u7684\u6559\u5b66\uff0c\u5305\u542b\u8f6f\u4ef6\u4e0b\u8f7d\u5b89\u88c5\u4e0e\u8bbe\u5b9a\uff0c\u4ee5\u53ca\u4fee\u6539\u53c2\u6570\u503c\u548c\u523b\u5f55\u5230ESP8266\u4e0e\u6d4b\u8bd5\u7684\u64cd\u4f5c\u90fd\u5728\u5f71\u7247\u4e2d\u3002<\/p>\n\n\n\n<iframe height=498 width=510 data-src='https:\/\/player.youku.com\/embed\/XNDgxMjQ1NDc0NA==' frameborder=0 'allowfullscreen' src='data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' class='lazyload' data-load-mode='1'><\/iframe>\n\n\n\n<p class=\"has-medium-font-size\"><a href=\"https:\/\/easylife.yt\/smarthome\/zh-cn\/2020\/08\/557\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/easylife.yt\/smarthome\/2020\/08\/540\/\"><a href=\"https:\/\/easylife.yt\/smarthome\/2020\/08\/540\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u4e0a\u4e00\u7bc7\uff1aDIY \u94c1\u5377\u95e8\u4e91\u7aef\u63a7\u5236\u5668,\u8fdc\u7a0b\u5f00\u5173\u94c1\u5377\u95e8\uff08\u4e8c\uff09<\/a><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u770b\u4e86\u7b2c\u4e00\u7bc7DIY\u4e91\u7aef\u63a7\u5236\u5668\u7684\u4ecb<\/p>\n","protected":false},"author":1,"featured_media":541,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119],"tags":[260,234,235,236,258,243,241,259,240],"class_list":["post-580","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-upgrade_cn","tag-arduino","tag-diy","tag-esp8266","tag-relay","tag-app","tag-243","tag-241","tag-259","tag-240"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":2,"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":582,"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/posts\/580\/revisions\/582"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/media\/541"}],"wp:attachment":[{"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easylife.yt\/smarthome\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}