{"id":48813,"date":"2018-09-01T11:12:09","date_gmt":"2018-09-01T05:12:09","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=48813"},"modified":"2022-01-12T18:46:38","modified_gmt":"2022-01-12T12:46:38","slug":"wi-fi-%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d1%8c-nodemcu-v3-%d1%81-%d1%87%d0%b8%d0%bf%d0%be%d0%bc-esp8266-esp-12e%d1%82%d0%b5%d1%80%d0%bc%d0%be%d1%80%d0%b5%d0%b3%d1%83%d0%bb%d1%8f%d1%82%d0%be%d1%80","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=48813","title":{"rendered":"wi-fi \u043c\u043e\u0434\u0443\u043b\u044c NodeMcu v3 \u0441 \u0447\u0438\u043f\u043e\u043c ESP8266 (ESP-12e)(\u0422\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c)"},"content":{"rendered":"<p>\u041d\u0430 \u0431\u0430\u0437\u0435\u00a0wi-fi \u043c\u043e\u0434\u0443\u043b\u044f NodeMcu v3 \u0441 \u0447\u0438\u043f\u043e\u043c ESP8266 (ESP-12e) \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0434\u0430\u0442\u0447\u0438\u043a 18B20. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 WEB \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b.<a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/09\/6237969816238.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-48956\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/09\/6237969816238.png\" alt=\"\" width=\"459\" height=\"220\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/09\/6237969816238.png 459w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/09\/6237969816238-200x96.png 200w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/a><\/p>\n<p>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0414\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u0435\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 IP \u0430\u0434\u0440\u0435\u0441 \u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0431\u0440\u043e\u0441\u043a\u0443 \u043f\u043e\u0440\u0442\u043e\u0432 \u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0435. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0431 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e &#8212;\u00a0<a href=\"http:\/\/rcl-radio.ru\/?p=48798\">wi-fi \u043c\u043e\u0434\u0443\u043b\u044c NodeMcu v3 \u0441 \u0447\u0438\u043f\u043e\u043c ESP8266 (ESP-12e)(\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439)<\/a>.<\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u0415\u0441\u043b\u0438 \u0412\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c\u00a0NodeMcu v3, \u0442\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439\u00a0<a href=\"http:\/\/rcl-radio.ru\/?p=48790\">wi-fi \u043c\u043e\u0434\u0443\u043b\u044c NodeMcu v3 \u0441 \u0447\u0438\u043f\u043e\u043c ESP8266 (ESP-12e)(Arduino IDE)<\/a>.<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;ESP8266WiFi.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;WiFiClient.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;ESP8266WebServer.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;ESP8266mDNS.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;OneWire.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;DallasTemperature.h&gt;<\/span>\r\nOneWire oneWire<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">14<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ D5 \u0432\u0445\u043e\u0434 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 18b20<\/span>\r\nDallasTemperature t<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">&amp;<\/span>oneWire<span style=\"color: #66cc66;\">)<\/span>;\r\nMDNSResponder mdns;\r\nconst char<span style=\"color: #66cc66;\">*<\/span> ssid = <span style=\"color: #ff0000;\">\"\u0418\u043c\u044f_\u0441\u0435\u0442\u0438\"<\/span>;\r\nconst char<span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #0066cc;\">password<\/span> = <span style=\"color: #ff0000;\">\"\u041f\u0430\u0440\u043e\u043b\u044c\"<\/span>;\r\nESP8266WebServer server<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">81<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">int<\/span> temper,reg_t=<span style=\"color: #cc66cc;\">20<\/span>,gis=<span style=\"color: #cc66cc;\">1<\/span>;\r\n<span style=\"color: #0066cc;\">String<\/span> ind;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">void<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n\u00a0\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>, OUTPUT<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ D4 \u0432\u044b\u0445\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439<\/span>\r\n  t.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;t.<span style=\"color: #006600;\">setResolution<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/10 \u0431\u0438\u0442 <\/span>\r\n\u00a0\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">115200<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  WiFi.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span>ssid, <span style=\"color: #0066cc;\">password<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">while<\/span> <span style=\"color: #66cc66;\">(<\/span>WiFi.<span style=\"color: #0066cc;\">status<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">!<\/span>= WL_CONNECTED<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">500<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\".\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"Connected to \"<\/span><span style=\"color: #66cc66;\">)<\/span>;  \r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>ssid<span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"IP address: \"<\/span><span style=\"color: #66cc66;\">)<\/span>;  \r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>WiFi.<span style=\"color: #006600;\">localIP<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>mdns.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"esp8266\"<\/span>, WiFi.<span style=\"color: #006600;\">localIP<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"MDNS responder started\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n  server.<span style=\"color: #0066cc;\">on<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\/\"<\/span>, <span style=\"color: #66cc66;\">[<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>web<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  server.<span style=\"color: #0066cc;\">on<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\/obn\"<\/span>, <span style=\"color: #66cc66;\">[<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>web<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  server.<span style=\"color: #0066cc;\">on<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\/reg+\"<\/span>, <span style=\"color: #66cc66;\">[<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>reg_t++;web<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  server.<span style=\"color: #0066cc;\">on<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\/reg-\"<\/span>, <span style=\"color: #66cc66;\">[<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>reg_t--;web<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  server.<span style=\"color: #0066cc;\">on<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\/reg+10\"<\/span>, <span style=\"color: #66cc66;\">[<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>reg_t=reg_t+<span style=\"color: #cc66cc;\">10<\/span>;web<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  server.<span style=\"color: #0066cc;\">on<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\/reg-10\"<\/span>, <span style=\"color: #66cc66;\">[<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>reg_t=reg_t-<span style=\"color: #cc66cc;\">10<\/span>;web<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n  server.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"HTTP server started\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">void<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  server.<span style=\"color: #006600;\">handleClient<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  t.<span style=\"color: #006600;\">requestTemperatures<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;temper=t.<span style=\"color: #006600;\">getTempCByIndex<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n   <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>reg_t<span style=\"color: #66cc66;\">&lt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>reg_t=<span style=\"color: #cc66cc;\">0<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>reg_t<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">125<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>reg_t=<span style=\"color: #cc66cc;\">125<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n   <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>reg_t <span style=\"color: #66cc66;\">&gt;<\/span>= temper + gis<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>,HIGH<span style=\"color: #66cc66;\">)<\/span>;ind=<span style=\"color: #ff0000;\">\" \u0412\u041a\u041b\"<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n   <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>reg_t <span style=\"color: #66cc66;\">&lt;<\/span>= temper - gis<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>digitalWrite<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>,LOW<span style=\"color: #66cc66;\">)<\/span>;ind=<span style=\"color: #ff0000;\">\" \u0412\u042b\u041a\u041b\"<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>reg_t<span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> web<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n<span style=\"color: #0066cc;\">String<\/span> webPage = <span style=\"color: #ff0000;\">\"&lt;!DOCTYPE HTML&gt;&lt;html&gt;\"<\/span>;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;meta charset='utf-8'&gt;&lt;meta name='viewport' content='width=480, user-scalable=no' \/&gt;\"<\/span>;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;style&gt;table {background-color:#F5F5F5;border-radius: 5px;}&lt;\/style&gt;\"<\/span>;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;TABLE align='center' width='450' BORDER='1' cellspacing='0' cellpadding='5'&gt;&lt;td colspan='3' align='center'&gt;\"<\/span>;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;h1&gt;\u0422\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 0...125 &amp;#176;C&lt;\/td&gt;&lt;tr&gt;&lt;\/h1&gt;\"<\/span>;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;meta http-equiv='Refresh' content='10; URL=\/obn' \/&gt;\"<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u0430\u0436\u0434\u044b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434<\/span>\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;td align='center'&gt;\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430&lt;\/td&gt;&lt;td align='center'&gt;&lt;a href=<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>obn<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>&gt;&lt;button&gt;\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c&lt;\/button&gt;&lt;\/a&gt;&lt;\/td&gt;&lt;td align='center'&gt;\"<\/span>;\r\n       webPage += temper;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;tr&gt;&lt;td align='center'&gt;\u0420\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b&lt;\/td&gt;&lt;td align='center'&gt;&lt;a href=<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>reg+<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>&gt;&lt;button&gt;+1&amp;nbsp;&amp;nbsp;&lt;\/button&gt;\"<\/span>;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;\/a&gt;&lt;a href=<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>reg-<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>&gt;&lt;button&gt;-1&amp;nbsp;&amp;nbsp;&lt;\/button&gt;&lt;\/a&gt;&lt;br&gt;&lt;a href=<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>reg+10<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>&gt;&lt;button&gt;+10&lt;\/button&gt;&lt;\/a&gt;\"<\/span>;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;a href=<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>reg-10<span style=\"color: #000099; font-weight: bold;\">\\\"<\/span>&gt;&lt;button&gt;-10&lt;\/button&gt;&lt;\/a&gt;&lt;\/td&gt;&lt;td align='center'&gt;\"<\/span>;\r\n       webPage += reg_t;\r\n       webPage += <span style=\"color: #ff0000;\">\" &amp;#176;C&lt;\/td&gt;\"<\/span>;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;tr&gt;&lt;td colspan='3' align='center'&gt;\u041d\u0430\u0433\u0440\u0435\u0432: \"<\/span>;\r\n       webPage += ind;\r\n       webPage += <span style=\"color: #ff0000;\">\"&lt;\/td&gt;&lt;\/html&gt;\"<\/span>; \r\n\u00a0\r\n  server.<span style=\"color: #0066cc;\">send<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span>, <span style=\"color: #ff0000;\">\"text\/html\"<\/span>, webPage<span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">300<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0441\u0435\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u043e\u0440\u0442 80, \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c\u044f \u0412\u0430\u0448\u0435\u0439\u00a0 wi-fi \u0441\u0435\u0442\u0438 \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u0441\u043a\u0435\u0442\u0447\u0435, \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u043a\u043e\u043c\u0435\u043d\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 (\u0434\u043b\u044f \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b):<\/p>\n<blockquote>\n<p style=\"text-align: center;\">webPage += <span style=\"color: #ff0000;\">&#171;&lt;meta http-equiv=&#8217;Refresh&#8217; content=&#8217;10; URL=\/obn&#8217; \/&gt;&#187;<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u0430\u0436\u0434\u044b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434<\/span><\/p>\n<\/blockquote>\n<p>\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043f\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435\u043c 3,3 \u0412 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u0441 \u043c\u043e\u0434\u0443\u043b\u044f\u00a0NodeMcu, \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0432\u044b\u0445\u043e\u0434 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a\u043e \u0432\u0445\u043e\u0434\u044b D5 \u043c\u043e\u0434\u0443\u043b\u044f, \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0432\u044b\u0445\u043e\u0434 \u043c\u043e\u0434\u0443\u043b\u044f D4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u0431\u0430\u0437\u0435\u00a0wi-fi \u043c\u043e\u0434\u0443\u043b\u044f NodeMcu v3 \u0441 \u0447\u0438\u043f\u043e\u043c ESP8266 (ESP-12e) \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0434\u0430\u0442\u0447\u0438\u043a 18B20. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 WEB \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0440\u043c\u043e\u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0414\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u0435\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":48815,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17],"tags":[],"class_list":["post-48813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17"],"views":7897,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/48813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48813"}],"version-history":[{"count":5,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/48813\/revisions"}],"predecessor-version":[{"id":111518,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/48813\/revisions\/111518"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/48815"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48813"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}