{"id":254875,"date":"2015-04-09T14:00:02","date_gmt":"2015-04-09T10:00:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=254875"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=254875","title":{"rendered":"\u041c\u043d\u043e\u0433\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b\/\u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 ESP8266 \u0438\u043b\u0438 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0448\u0430\u0433 \u043a \u00ab\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0432\u0435\u0449\u0435\u0439\u00bb"},"content":{"rendered":"<p> \t\t\t\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440: \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044f \u043d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c ESP8266 \u0438 \u0435\u0449\u0435 \u043d\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0430\u0441\u043f\u0435\u043a\u0442\u044b \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. <\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u0434\u043e\u043c\u0435 \u0435\u0441\u0442\u044c Wi-Fi \u0440\u043e\u0443\u0442\u0435\u0440 \u0438 \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u0434\u0430\u043b\u044c\u043d\u043e\u0432\u0438\u0434\u043d\u043e \u043d\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u0434\u043b\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u044e\u0431\u044b\u0445 \u0438\u0434\u0435\u0439. \u041d\u0438\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432\/\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 Wi-Fi \u043c\u043e\u0434\u0443\u043b\u044f \u2014 ESP8266.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/e6H0ESoY93mdpfTDO7DKs-HILAAjNjm1istnqZmjx5_v9MZQoohk66vte6_4LIP-RTbFpK4zgnGq9hU=w1884-h790\" alt=\"image\"\/><br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d <a href=\"http:\/\/habrahabr.ru\/company\/coolrf\/blog\/238443\/\">\u0437\u0434\u0435\u0441\u044c<\/a>, <a href=\"http:\/\/habrahabr.ru\/company\/coolrf\/blog\/235881\/\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0430 \u043d\u0430 <a href=\"http:\/\/esp8266.ru\/\">\u044d\u0442\u043e\u043c<\/a> \u0441\u0430\u0439\u0442\u0435 \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0435\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u0442\u0432\u043e \u043e \u043c\u043e\u0434\u0443\u043b\u0435 ESP8266.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u00ab\u0443\u043c\u0435\u0442\u044c\u00bb \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e:  <\/p>\n<ul>\n<li>\u041f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438\/\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b <a href=\"https:\/\/www.sparkfun.com\/datasheets\/Sensors\/Temperature\/DHT22.pdf\">DHT22<\/a>;<\/li>\n<li>\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0432\u0435\u0440\u0434\u043e\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u043b\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"http:\/\/www.promsat.com\/page\/1846\/\">SSR-25 DA<\/a>);<\/li>\n<li>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a Wi-Fi \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u043b\u043e\u0433\u0438\u043d\u043e\u043c \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c;<\/li>\n<li>\u041f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 <a href=\"http:\/\/en.wikipedia.org\/wiki\/MQTT\">MQTT<\/a> \u0431\u0440\u043e\u043a\u0435\u0440;<\/li>\n<li>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e USB \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438.<\/li>\n<\/ul>\n<p>  \u0421\u0445\u0435\u043c\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/z1axi27o5gE32_PBbuAHCwx5hT1dRkKQ2uKgKG7ck4BUgNokoo_-FefnQG1zRkcM2FusMVTYH1JZxt4=w1884-h790\" alt=\"image\"\/><\/p>\n<p>  \u041c\u043e\u0434\u0438\u0444\u043a\u0430\u0446\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044f ESP8266 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e (\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b <a href=\"http:\/\/esp8266.ru\/modules-esp8266\/\">\u0437\u0434\u0435\u0441\u044c<\/a>), \u043d\u043e, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u043d\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c\u0438, \u0442\u0438\u043f\u043e\u043c \u0430\u043d\u0442\u0435\u043d\u043d\u044b \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u043e\u0440\u0442\u043e\u0432 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043c\u043e\u0434\u0443\u043b\u044c ESP8266 ESP-01:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/119\/c08\/80c\/119c0880c8260bfbad3d8119d1102da0.png\" alt=\"image\"\/><\/p>\n<p>  \u0423 \u043d\u0435\u0433\u043e \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0430 \u043f\u043e\u0440\u0442\u0430 (\u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f USART) \u2014 GPIO0, GPIO2, \u043d\u043e \u0434\u043b\u044f \u043c\u043e\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043e\u0434\u0438\u043d \u043f\u043e\u0440\u0442 \u2014 \u0434\u043b\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439.<\/p>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 USB \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f USB-USART \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c CH340G.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/b68\/72d\/19d\/b6872d19d2b6e209d100f226c424b55f.jpg\" alt=\"image\"\/><\/p>\n<p>  <a href=\"http:\/\/fobit.blogspot.com\/2014\/11\/ch340g-in-eagle.html\">\u0417\u0434\u0435\u0441\u044c<\/a> \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a 3.3 \u0438 5\u0412 \u043b\u043e\u0433\u0438\u043a\u0435. \u041c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 \u043e\u0447\u0435\u043d\u044c \u0434\u0435\u0448\u0435\u0432\u0430\u044f \u0438 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438. \u0418\u0437 \u043e\u0431\u0432\u044f\u0437\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043d\u0430 12MHz \u0438 \u043f\u0430\u0440\u0430 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u043e\u0432. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0443 \u0432\u0430\u0441 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b USART, \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 USB. \u041d\u0430 PC \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442.<\/p>\n<p>  \u0414\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043f\u0430\u0440\u0443 \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u2014 \u0441\u043f\u0440\u043e\u0441\u0438\u0442 <s>\u043f\u0440\u043e\u0436\u0436\u0435\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0449\u0438\u043a<\/s> \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c. \u0412\u0441\u0435 \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u043c, \u0430 \u043c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u043b\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c=\u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044e \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 pnp \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\u0430, \u0442\u043e\u043a \u044d\u043c\u0438\u0442\u0442\u0435\u0440\u0430 (\u043f\u0440\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f &gt; \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f ESP8266) \u043f\u043e\u0439\u0434\u0435\u0442 \u0432 \u043c\u043e\u0434\u0443\u043b\u044c, \u0447\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0445\u043e\u0440\u043e\u0448\u043e. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e npn \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440 \u044f \u043d\u0435 \u043c\u043e\u0433, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u0440\u0442 GPIO0 \u0432\u0441\u0435 \u0432\u0440\u0435\u043c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0442\u044f\u043d\u0443\u0442 \u043a \u043c\u0438\u043d\u0443\u0441\u0443, \u0430 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0434\u0443\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0432\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u044c. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0432 pnp + npn \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\u044b, \u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e \u043c\u0438\u043d\u0443\u0441\u043e\u043c \u0440\u0435\u043b\u0435.<\/p>\n<p>  \u0414\u0430\u0442\u0447\u0438\u043a DHT22:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/www.openhacks.com\/uploadsproductos\/dht22_1.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0432\u044f\u0437\u043a\u0438 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u043a \u043c\u043e\u0434\u0443\u043b\u044e ESP. \u0415\u043c\u0443 \u043d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438(\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 1-wire).<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u043d\u0430 \u0441\u0445\u0435\u043c\u0435:   <\/p>\n<ul>\n<li>\u041f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0430 JP2 \u2014 \u0434\u043b\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u044f. \u041f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0430 \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 GPIO0 \u043a \u043c\u0438\u043d\u0443\u0441\u0443. \u0412 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u2014 \u0440\u0430\u0437\u043e\u043c\u043a\u043d\u0443\u0442\u0430, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u2014 \u0437\u0430\u043c\u043a\u043d\u0443\u0442\u0430); <\/li>\n<li>\u041a\u043d\u043e\u043f\u043a\u0430 S1 \u2014 reset \u043c\u043e\u0434\u0443\u043b\u044f; <\/li>\n<li>\u0420\u0430\u0437\u044a\u0435\u043c SV1 \u2014 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u043b\u0435; <\/li>\n<li> \u0420\u0430\u0437\u044a\u0435\u043c J1 \u2014 \u0433\u043d\u0435\u0437\u0434\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044f; <\/li>\n<li>\u0420\u0430\u0437\u044a\u0435\u043c JP1 \u2014 micro USB \u043c\u0430\u043c\u0430. <\/li>\n<\/ul>\n<p>  \u041f\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e 5 \u2014 12\u0412.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0438.<\/p>\n<p>  \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 <a href=\"https:\/\/github.com\/nodemcu\">NodeMCU<\/a>. \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u0430\u044f \u0448\u0442\u0443\u043a\u0430. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u041e\u0421, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0432\u0430\u0448\u0438 lua-\u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u043d\u0430 ESP8266. NodeMCU \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u0443\u0447\u0435\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043d\u044f\u0442\u044c web \u0441\u0435\u0440\u0432\u0435\u0440, \u0441\u043e\u0437\u0434\u0430\u0442\u044c TCP \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u2026<\/p>\n<p>  \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0435\u043c \u0432 \u043d\u0430\u0448 \u043c\u043e\u0434\u0443\u043b\u044c NodeMCU. <a href=\"http:\/\/blog.squix.ch\/2014\/12\/esp8266-flashing-lua-firmware-and.html\">\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0435<\/a>.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u0440\u043e\u0448\u0438\u0442, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b. \u0421\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u043d\u043e \u043b\u0438\u0447\u043d\u043e \u043c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 <a href=\"http:\/\/esp8266.ru\/esplorer-ide-esp8266\/\">ESPlorer<\/a> \u2014 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u043e\u0444\u0442\u0438\u043d\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043d\u043e \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0434\u0435\u0431\u0430\u0433\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043b\u0438\u0442\u044c \u0442\u0440\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">dht22.lua &#8212; \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043c\u043e\u0434\u0443\u043b\u044c \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 DHT22<\/b><\/p>\n<div class=\"spoiler_text\"> \u2014 ***************************************************************************<br \/>   \u2014 DHT22 module for ESP8266 with nodeMCU<br \/>   \u2014  \u2014 Written by Javier Yanez <br \/>   \u2014 but based on a script of Pigs Fly from ESP8266.com forum<br \/>   \u2014  \u2014 MIT license, <a href=\"http:\/\/opensource.org\/licenses\/MIT\">opensource.org\/licenses\/MIT<\/a><br \/>   \u2014 ***************************************************************************<\/p>\n<p>  local moduleName =\u2026<br \/>  local M = {}<br \/>  _G[moduleName] = M<\/p>\n<p>  local humidity<br \/>  local temperature<\/p>\n<p>  function M.read(pin)<br \/>   local checksum<br \/>   local checksumTest<br \/>   humidity = 0<br \/>   temperature = 0<br \/>   checksum = 0<\/p>\n<p>   \u2014 Use Markus Gritsch trick to speed up read\/write on GPIO<br \/>   local gpio_read = gpio.read<\/p>\n<p>  local bitStream = {}<br \/>   for j = 1, 40, 1 do<br \/>   bitStream[j] = 0<br \/>   end<br \/>   local bitlength = 0<br \/>   \u2014 Step 1: send out start signal to DHT22<br \/>   gpio.mode(pin, gpio.OUTPUT)<br \/>   gpio.write(pin, gpio.HIGH)<br \/>   tmr.delay(100)<br \/>   gpio.write(pin, gpio.LOW)<br \/>   tmr.delay(20000)<br \/>   gpio.write(pin, gpio.HIGH)<br \/>   gpio.mode(pin, gpio.INPUT)<\/p>\n<p>   \u2014 Step 2: DHT22 send response signal <br \/>   \u2014 bus will always let up eventually, don&#8217;t bother with timeout<br \/>   while (gpio_read(pin) == 0 ) do end<br \/>   local c=0<br \/>   while (gpio_read(pin) == 1 and c &lt; 500) do c = c + 1 end<br \/>   \u2014 bus will always let up eventually, don&#8217;t bother with timeout<br \/>   while (gpio_read(pin) == 0 ) do end<br \/>   c=0<br \/>   while (gpio_read(pin) == 1 and c &lt; 500) do c = c + 1 end<\/p>\n<p>   \u2014 Step 3: DHT22 send data<br \/>   for j = 1, 40, 1 do<br \/>   while (gpio_read(pin) == 1 and bitlength &lt; 10 ) do<br \/>   bitlength = bitlength + 1<br \/>   end<br \/>   bitStream[j] = bitlength<br \/>   bitlength = 0<br \/>   \u2014 bus will always let up eventually, don&#8217;t bother with timeout<br \/>   while (gpio_read(pin) == 0) do end<br \/>   end<\/p>\n<p>  &#8212;DHT data acquired, process.<br \/>   for i = 1, 16, 1 do<br \/>   if (bitStream[i] &gt; 3) then<br \/>   humidity = humidity + 2 ^ (16 \u2014 i)<br \/>   end<br \/>   end<br \/>   for i = 1, 16, 1 do<br \/>   if (bitStream[i + 16] &gt; 3) then<br \/>   temperature = temperature + 2 ^ (16 \u2014 i)<br \/>   end<br \/>   end<br \/>   for i = 1, 8, 1 do<br \/>   if (bitStream[i + 32] &gt; 3) then<br \/>   checksum = checksum + 2 ^ (8 \u2014 i)<br \/>   end<br \/>   end<\/p>\n<p>  checksumTest = (bit.band(humidity, 0xFF) + bit.rshift(humidity, 8) + bit.band(temperature, 0xFF) + bit.rshift(temperature, 8))<br \/>   checksumTest = bit.band(checksumTest, 0xFF)<\/p>\n<p>  if temperature &gt; 0x8000 then<br \/>   \u2014 convert to negative format<br \/>   temperature = -(temperature \u2014 0x8000)<br \/>   end<\/p>\n<p>   \u2014 conditions compatible con float point and integer<br \/>   if (checksumTest \u2014 checksum &gt;= 1) or (checksum \u2014 checksumTest &gt;= 1) then<br \/>   humidity = nil<br \/>   end<br \/>  end<\/p>\n<p>  function M.getTemperature()<br \/>   return temperature<br \/>  end<\/p>\n<p>  function M.getHumidity()<br \/>   return humidity<br \/>  end<\/p>\n<p>  return M<\/p><\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">main.lua &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a Wi-Fi \u0441\u0435\u0442\u0438, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u043f\u043e mqtt \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439<\/b><\/p>\n<div class=\"spoiler_text\">function subscribe()<br \/>   m:subscribe(&quot;\/myhome\/&quot;..id..&quot;\/light&quot;,0,function(conn)print(\u00abSubscribe success\u00bb)end)<br \/>   m:on(\u00abmessage\u00bb,function(conn,topic,data)<br \/>   print(topic\u2026 &quot;: &quot;..data )<br \/>   if data==\u00abON\u00bbthen gpio.write(3, gpio.LOW)end<br \/>   if data==\u00abOFF\u00bbthen gpio.write(3, gpio.HIGH)end<br \/>   end)<br \/>  end<\/p>\n<p>  function dht22_get_data()<br \/>   dht22=require(\u00abdht22\u00bb)<br \/>   dht22.read(4)<br \/>   local t=dht22.getTemperature()<br \/>   local h=dht22.getHumidity()<br \/>   if t~=nil then<br \/>   t=((t-(t % 10))\/10)..&quot;.&quot;..string.format(&quot;%.i&quot;,(t % 10))<br \/>   else t=nil<br \/>   end<br \/>   if h~=nil then<br \/>   h=((h-(h % 10))\/10)..&quot;.&quot;..string.format(&quot;%.i&quot;,(h % 10))<br \/>   else h=nil<br \/>   end<br \/>   dht22=nil<br \/>   package.loaded[\u00abdht22\u00bb]=nil<br \/>   collectgarbage()<br \/>   return t, h<br \/>  end<br \/>  function post_data()<br \/>   t, h = dht22_get_data()<br \/>   if t ~= nil then<br \/>   m:publish(&quot;\/myhome\/&quot;..id..&quot;\/temperature&quot;,t,0,0, function()<br \/>   print(\u00abTemperature \u00bb..t)<br \/>   if h ~= nil then<br \/>   m:publish(&quot;\/myhome\/&quot;..id..&quot;\/humidity&quot;,h,0,0, function()print(\u00abHumidity \u00bb..h)end)<br \/>   end<br \/>   end)<br \/>   end<br \/>  end<\/p>\n<p>  function init_network()<br \/>   collectgarbage()<br \/>   print(id)<br \/>   if wifi.sta.status() ~= 5 then<br \/>   print(\u00abReconnecting WIFI\u00bb)<br \/>   wifi.setmode(wifi.STATION)<br \/>   wifi.sta.config(\u00abLogin\u00bb,\u00abpassword\u00bb)<br \/>   wifi.sta.connect()<br \/>   tmr.alarm(0,5000,0,function()init_network()end)<br \/>   else<br \/>   print(\u00abIP: \u00bb..wifi.sta.getip())<br \/>   print(\u00abConnecting to MQTT server\u00bb)<br \/>   tmr.alarm(0,7000,0,function()init_network()end)<br \/>   if m~=nil then<br \/>   m:close()<br \/>   end<br \/>   m = mqtt.Client(id, 120)<br \/>   m:connect(\u00ab192.168.0.x\u00bb,1883,0,function(conn)<br \/>   tmr.stop(0)<br \/>   print(\u00abConnected\u00bb)<br \/>   subscribe()<br \/>   tmr.alarm(0, 60000, 1, function() post_data() end)<br \/>   m:on(\u00aboffline\u00bb,function(con)<br \/>   print(\u00aboffline.Reconnecting\u00bb)<br \/>   init_network()<br \/>   end)<br \/>   end)<br \/>   end<br \/>  end<\/p>\n<p>  gpio.mode(3, gpio.OUTPUT)<br \/>  id=\u00abesp_\u00bb..wifi.sta.getmac()<br \/>  init_network()  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">init.lua &#8212; \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u0415\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 NodeMCU \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435.<\/b><\/p>\n<div class=\"spoiler_text\">print(\u00abESP8266_home_board_v_x.x\u00bb)<br \/>  dofile(&#8216;main.lc&#8217;)  <\/div>\n<\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0444\u043b\u044d\u0448 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u044f \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 NodeMCU \u0438 \u043c\u043e\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u00ab\u043a\u043e\u0441\u0442\u044b\u043b\u044c\u043d\u043e\u0435\u00bb \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e \u043e\u0434\u0438\u043d \u0441\u043a\u0440\u0438\u043f\u0442, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 node.compile(\u00abdht22.lua\u00bb) \u2014 \u0434\u0430\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u00abdht22.lc\u00bb, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043e\u043d \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0435\u0441\u0442\u0430 \u0438 \u0432\u043e \u0444\u043b\u044d\u0448 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0432 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0442\u0430 \u043a\u0430\u043a \u043f\u043e\u0442\u043e\u043c NodeMCU \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u041f\u043e\u0442\u043e\u043c \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 file.remove (\u00abdht22.lua\u00bb). \u041f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0435\u043c \u0442\u0435 \u0436\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 main.lua. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c init.lua \u0441\u043a\u0440\u0438\u043f\u0442, \u0435\u0433\u043e \u0443\u0436\u0435 \u043d\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c. \u0420\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u044c.<\/p>\n<p>  \u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 NodeMCU \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442 \u00abinit.lua\u00bb \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u00abmain.lua\u00bb. \u00abmain.lua\u00bb \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u0441\u044f \u043a \u0441\u0435\u0442\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 COM \u043f\u043e\u0440\u0442 \u0438 \u0432 \u0441\u0435\u0442\u044c \u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 mqtt \u0431\u0440\u043e\u043a\u0435\u0440.<\/p>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c \u043e\u0442\u0432\u0435\u0447\u0443 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>  \u041d\u0443, \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u0432\u0441\u0435. \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430, \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e mqtt \u0431\u0440\u043e\u043a\u0435\u0440 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430 \u043a Openhab.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/255359\/\"> http:\/\/habrahabr.ru\/post\/255359\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> \t\t\t\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440: \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044f \u043d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c ESP8266 \u0438 \u0435\u0449\u0435 \u043d\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0430\u0441\u043f\u0435\u043a\u0442\u044b \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. <\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u0434\u043e\u043c\u0435 \u0435\u0441\u0442\u044c Wi-Fi \u0440\u043e\u0443\u0442\u0435\u0440 \u0438 \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u0434\u0430\u043b\u044c\u043d\u043e\u0432\u0438\u0434\u043d\u043e \u043d\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u0434\u043b\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u044e\u0431\u044b\u0445 \u0438\u0434\u0435\u0439. \u041d\u0438\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432\/\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 Wi-Fi \u043c\u043e\u0434\u0443\u043b\u044f \u2014 ESP8266.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/e6H0ESoY93mdpfTDO7DKs-HILAAjNjm1istnqZmjx5_v9MZQoohk66vte6_4LIP-RTbFpK4zgnGq9hU=w1884-h790\" alt=\"image\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-254875","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254875"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254875\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}