{"id":50109,"date":"2018-10-01T22:55:47","date_gmt":"2018-10-01T16:55:47","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=50109"},"modified":"2022-01-12T18:44:01","modified_gmt":"2022-01-12T12:44:01","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-%d0%be%d1%82%d0%bf%d1%80%d0%b0%d0%b2%d0%ba%d0%b0-get-%d0%b7%d0%b0%d0%bf%d1%80%d0%be","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=50109","title":{"rendered":"wi-fi \u043c\u043e\u0434\u0443\u043b\u044c NodeMcu v3 \u0441 \u0447\u0438\u043f\u043e\u043c ESP8266 (ESP-12e) &#8212; \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 GET \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445"},"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 (\u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430) \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u043d\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u0435 18B20, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0431 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 GET \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 MySQL.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0435\u0442\u0447 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c GET \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e test.php.<\/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;ESP8266HTTPClient.h&gt;<\/span>\r\n\u00a0\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\n\u00a0\r\nconst char<span style=\"color: #66cc66;\">*<\/span> ssid = <span style=\"color: #ff0000;\">\"******\"<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0438\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;\">\"******\"<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u0430\u0440\u043e\u043b\u044c \u0441\u0435\u0442\u0438<\/span>\r\n<span style=\"color: #0066cc;\">int<\/span> temper;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/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  <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>\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;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"Connecting..\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"OK\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"IP: \"<\/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: #0066cc;\">toString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">)<\/span>;\r\n  t.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  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 18B20<\/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: #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>;\r\n  temper = t.<span style=\"color: #006600;\">getTempCByIndex<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">100<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043e\u043f\u0440\u043e\u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 18B20<\/span>\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>WiFi.<span style=\"color: #0066cc;\">status<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> == WL_CONNECTED<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>WiFi.<span style=\"color: #006600;\">RSSI<\/span><span style=\"color: #66cc66;\">(<\/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;\">\" dBm\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>temper<span style=\"color: #66cc66;\">)<\/span>;\r\n    HTTPClient http;  \r\n    http.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"http:\/\/rcl-radio.ru\/test.php\/?temp=\"<\/span> + <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">String<\/span><span style=\"color: #66cc66;\">)<\/span>temper<span style=\"color: #66cc66;\">)<\/span>;  \r\n    delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10000<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    <span style=\"color: #0066cc;\">int<\/span> httpCode = http.<span style=\"color: #0066cc;\">GET<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;                                                                 \r\n    <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>httpCode <span style=\"color: #66cc66;\">&gt;<\/span> <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span> \r\n    Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"HTTP \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>httpCode<span style=\"color: #66cc66;\">)<\/span>; \r\n    <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>httpCode==<span style=\"color: #cc66cc;\">200<\/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;\">\" OK\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" Error\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n    <span style=\"color: #66cc66;\">}<\/span>                                                                \r\n    http.<span style=\"color: #0066cc;\">end<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;   \r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<div id=\"marketWidget\"><\/div>\n<p>\u0424\u0430\u0439\u043b test.php \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span>\r\n <a href=\"http:\/\/www.php.net\/mysql_connect\"><span style=\"color: #990000;\">mysql_connect<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"localhost\"<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">\"\u0438\u043c\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u043f\u0430\u0440\u043e\u043b\u044c\"<\/span><span style=\"color: #009900;\">)<\/span> or <a href=\"http:\/\/www.php.net\/die\"><span style=\"color: #990000;\">die<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"Could not connect: \"<\/span> <span style=\"color: #339933;\">.<\/span> <a href=\"http:\/\/www.php.net\/mysql_error\"><span style=\"color: #990000;\">mysql_error<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n <a href=\"http:\/\/www.php.net\/mysql_select_db\"><span style=\"color: #990000;\">mysql_select_db<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"\u0438\u043c\u044f_\u0431\u0430\u0437\u044b_\u0434\u0430\u043d\u043d\u044b\u0445\"<\/span><span style=\"color: #009900;\">)<\/span> or <a href=\"http:\/\/www.php.net\/die\"><span style=\"color: #990000;\">die<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"Could not select database\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n <a href=\"http:\/\/www.php.net\/mysql_query\"><span style=\"color: #990000;\">mysql_query<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"SET NAMES utf8\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n\u00a0\r\n<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #339933;\">!<\/span><a href=\"http:\/\/www.php.net\/empty\"><span style=\"color: #990000;\">empty<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$_GET<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">\"temp\"<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #000088;\">$temp<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$_GET<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">\"temp\"<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">\/<\/span><span style=\"color: #cc66cc;\">100<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$query<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #0000ff;\">\"INSERT INTO test (temp) VALUES ('<span style=\"color: #006699; font-weight: bold;\">$temp<\/span>')\"<\/span><span style=\"color: #339933;\">;<\/span>  \r\n<a href=\"http:\/\/www.php.net\/mysql_query\"><span style=\"color: #990000;\">mysql_query<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$query<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #009900;\">}<\/span>\r\n<span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span><\/pre>\n<p>\u0424\u0430\u0439\u043b test.php \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u0430\u0436\u0434\u044b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p>\u0412\u00a0\u0441\u0435\u0440\u0432\u0435\u0440\u0435 MySQL \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0434\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 test,\u00a0 \u0432 \u043d\u0435\u0439 \u0431\u0443\u0434\u0443\u0442 \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u044d\u0442\u043e <strong>id<\/strong> \u0438 <strong>test<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-50110\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222309.png\" alt=\"\" width=\"537\" height=\"151\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222309.png 537w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222309-200x56.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222309-500x141.png 500w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/>\u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222533.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-50111\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222533.png\" alt=\"\" width=\"1101\" height=\"395\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222533.png 1101w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222533-200x72.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222533-500x179.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222533-768x276.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222533-1024x367.png 1024w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/a>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-50112\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222644.png\" alt=\"\" width=\"376\" height=\"201\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222644.png 376w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222644-200x107.png 200w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/>\u0412 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0435 \u043f\u043e\u0440\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-50113\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222659.png\" alt=\"\" width=\"276\" height=\"343\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222659.png 276w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2018-10-01-222659-200x249.png 200w\" sizes=\"auto, (max-width: 276px) 100vw, 276px\" \/>\u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430 \u043f\u043e\u0440\u0442\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442-\u0432\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432.<\/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 (\u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430) \u0442\u0435\u0440\u043c\u043e\u043c\u0435\u0442\u0440 \u043d\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u0435 18B20, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0431 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 GET \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 MySQL. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0435\u0442\u0447 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c GET \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e test.php. #include &lt;ESP8266WiFi.h&gt; #include &lt;ESP8266HTTPClient.h&gt; \u00a0 #include &lt;OneWire.h&gt; #include &lt;DallasTemperature.h&gt; OneWire [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":50112,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17],"tags":[],"class_list":["post-50109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17"],"views":4977,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/50109","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=50109"}],"version-history":[{"count":3,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/50109\/revisions"}],"predecessor-version":[{"id":111510,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/50109\/revisions\/111510"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/50112"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50109"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}