{"id":487697,"date":"2026-07-17T17:03:44","date_gmt":"2026-07-17T17:03:44","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=487697"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=487697","title":{"rendered":"\u041f\u043e\u0433\u043e\u0434\u043d\u044b\u0439 \u0447\u0451\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a: \u043f\u0438\u0448\u0435\u043c \u043b\u043e\u0433 \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043d\u0430 MicroSD \u0441 ESP32-C3"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442 \u0425\u0430\u0431\u0440! \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0431\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e MQTT-\u0431\u0440\u043e\u043a\u0435\u0440\u0430. \u041f\u0440\u043e\u043f\u0430\u043b Wi-Fi \u2014 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043b\u0438\u043c\u0430\u0442\u0435 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u0430\u0440\u0438\u043b\u0438\u0441\u044c \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0413\u043e\u0442\u043e\u0432\u044b\u0435 \u043b\u043e\u0433\u0433\u0435\u0440\u044b \u0441\u0442\u043e\u044f\u0442 \u0434\u043e\u0440\u043e\u0433\u043e, \u0430 \u0438\u0445 \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u0435 \u041f\u041e \u043d\u0435 \u0434\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u044b\u0440\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c.  \u041c\u043d\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u0435\u0448\u0435\u0432\u043e\u0435 \u0438 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 &#171;\u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a&#187; \u0434\u043b\u044f \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b \u0438 \u0431\u0430\u043b\u043a\u043e\u043d\u0430. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u044c \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0442\u0430, \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0430\u043c\u0435\u0440\u0430 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u0443\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e txt \u0444\u0430\u0439\u043b\u0430. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0431\u043b\u0430\u043a\u043e\u0432, \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043e\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u0437\u0435 ESP32-C3 Super Mini, \u0431\u0430\u0440\u043e\u043c\u0435\u0442\u0440\u0430 bme280, \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440\u0430!<\/p>\n<h2>\u0412\u044b\u0431\u043e\u0440 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/h2>\n<figure class=\"bordered full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/147\/670\/f5c\/147670f5cb0b829155cb30f8e9c4b29f.jpeg\" alt=\"\u0412\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b\" title=\"\u0412\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b\" width=\"1440\" height=\"1920\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/147\/670\/f5c\/147670f5cb0b829155cb30f8e9c4b29f.jpeg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/147\/670\/f5c\/147670f5cb0b829155cb30f8e9c4b29f.jpeg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0412\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u044f \u0443\u0436\u0435 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u043b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043f\u043e\u0447\u0435\u043c\u0443 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0445:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u043e\u0447\u0435\u043c\u0443<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0435\u043d\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Esp32c3 super mini<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u0447\u0435\u043d\u044c \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043e\u0449\u043d\u0430\u044f.<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043a\u043e\u043b\u043e 250 \u0440\u0443\u0431.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0421\u043e\u0432\u043c\u0435\u0449\u0451\u043d\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 bme280 + aht20<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f, \u0443 bme280 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u044d\u0442\u043e \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f aht20.<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043a\u043e\u043b\u043e 100 \u0440\u0443\u0431.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c sd-\u043a\u0430\u0440\u0442\u0443.<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043a\u043e\u043b\u043e 50 \u0440\u0443\u0431<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041c\u0430\u043a\u0435\u0442\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 + \u043a\u043e\u043d\u0435\u043a\u0442\u043e\u0440\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0418\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430.<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043a\u043e\u043b\u043e 30 \u0440\u0443\u0431<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u0421\u0431\u043e\u0440\u043a\u0430<\/h2>\n<p>\u042f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u043b \u0432\u0441\u0451 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435 3&#215;7 \u0441\u043c. \u0412\u043e\u0442 \u0444\u043e\u0442\u043e:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2d3\/2e0\/60a\/2d32e060a071d2878ee3b2d464437475.jpeg\" alt=\"\u0413\u043e\u0442\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\" title=\"\u0413\u043e\u0442\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\" width=\"1920\" height=\"1440\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/2d3\/2e0\/60a\/2d32e060a071d2878ee3b2d464437475.jpeg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2d3\/2e0\/60a\/2d32e060a071d2878ee3b2d464437475.jpeg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0413\u043e\u0442\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u043e\u0442 \u0441\u0445\u0435\u043c\u0430 \u0441\u0431\u043e\u0440\u043a\u0438:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\">\u041c\u043e\u0434\u0443\u043b\u044c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0438\u043d \u043d\u0430 \u043d\u0451\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0438\u043d \u043d\u0430 esp32<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0434\u0430\u0442\u0447\u0438\u043a \u0441 bme280 \u0438 aht20<\/p>\n<\/td>\n<td>\n<p align=\"left\">vcc<\/p>\n<\/td>\n<td>\n<p align=\"left\">3v3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0434\u0430\u0442\u0447\u0438\u043a \u0441 bme280 \u0438 aht20<\/p>\n<\/td>\n<td>\n<p align=\"left\">gnd<\/p>\n<\/td>\n<td>\n<p align=\"left\">gnd<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0434\u0430\u0442\u0447\u0438\u043a \u0441 bme280 \u0438 aht20<\/p>\n<\/td>\n<td>\n<p align=\"left\">scl<\/p>\n<\/td>\n<td>\n<p align=\"left\">gpio 8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0434\u0430\u0442\u0447\u0438\u043a \u0441 bme280 \u0438 aht20<\/p>\n<\/td>\n<td>\n<p align=\"left\">sda<\/p>\n<\/td>\n<td>\n<p align=\"left\">gpio 9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">3v3<\/p>\n<\/td>\n<td>\n<p align=\"left\">3v3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">gnd<\/p>\n<\/td>\n<td>\n<p align=\"left\">gnd<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">cs<\/p>\n<\/td>\n<td>\n<p align=\"left\">gpio 7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">mosi<\/p>\n<\/td>\n<td>\n<p align=\"left\">gpio 6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">miso<\/p>\n<\/td>\n<td>\n<p align=\"left\">gpio 5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">clk<\/p>\n<\/td>\n<td>\n<p align=\"left\">gpio 4<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0441\u043f\u0438\u043d\u043e\u0432\u043a\u0430 \u043f\u043b\u0430\u0442\u044b<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6d5\/c82\/f5b\/6d5c82f5b744fbe2956cd26fb916d246.jpg\" alt=\"esp32c3 super mini\" title=\"esp32c3 super mini\" width=\"1307\" height=\"445\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/6d5\/c82\/f5b\/6d5c82f5b744fbe2956cd26fb916d246.jpg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6d5\/c82\/f5b\/6d5c82f5b744fbe2956cd26fb916d246.jpg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>esp32c3 super mini<\/figcaption><\/div>\n<\/figure>\n<\/div>\n<\/details>\n<h2>\u041a\u043e\u0434<\/h2>\n<p>\u0412\u043e\u0442 \u043a\u043e\u0434 \u0441\u0445\u0435\u043c\u044b \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438:<\/p>\n<pre><code class=\"cpp\">\/\/ \u041f\u0438\u043d\u044b SPI \u0434\u043b\u044f ESP32-C3 Super Mini (GPIO)#define SCK  4   \/\/ Serial Clock - \u0442\u0430\u043a\u0442\u043e\u0432\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u0448\u0438\u043d\u044b SPI#define MISO 5   \/\/ Master In Slave Out - \u043b\u0438\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u043a\u0430\u0440\u0442\u044b \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443#define MOSI 6   \/\/ Master Out Slave In - \u043b\u0438\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043a \u043a\u0430\u0440\u0442\u0435#define CS   7   \/\/ Chip Select - \u0432\u044b\u0431\u043e\u0440 \u0432\u0435\u0434\u043e\u043c\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 (SD-\u043a\u0430\u0440\u0442\u044b)\/\/ \u041f\u0435\u0440\u0438\u043e\u0434 \u043e\u043f\u0440\u043e\u0441\u0430 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043c\u0441 (1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430)#define PRD_WRITE 1000#include &lt;WiFi.h&gt;#include &lt;WebServer.h&gt;const char *ssid = \"ESPstation\"; \/\/ \u0418\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 Wi-FiWebServer server(80); \/\/ \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u0442\u0443 HTTP (80)#include \"SPI.h\"      \/\/ \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e SPI#include \"SD.h\"       \/\/ \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SD-\u043a\u0430\u0440\u0442\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 FS API#include \"FS.h\"       \/\/ \u0410\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Arduino#include &lt;GyverBME280.h&gt; \/\/ \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 BME280 (\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430, \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c)GyverBME280 bme;#include &lt;Adafruit_AHTX0.h&gt; \/\/ \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Adafruit \u0434\u043b\u044f AHT10\/AHT20 (\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430, \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c)Adafruit_AHTX0 aht;float dataBus[] = {0.0, 0.0, 0.0}; \/* \u041c\u0430\u0441\u0441\u0438\u0432 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439:dataBus[0] \u2014 \u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 (\u00b0C)dataBus[1] \u2014 \u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (\u043c\u043c \u0440\u0442. \u0441\u0442.)dataBus[2] \u2014 \u0412\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c (%)*\/\/* \u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0437 \u041f\u0430\u0441\u043a\u0430\u043b\u0435\u0439 (\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 BME280) \u0432 \u043c\u0438\u043b\u043b\u0438\u043c\u0435\u0442\u0440\u044b \u0440\u0442\u0443\u0442\u043d\u043e\u0433\u043e \u0441\u0442\u043e\u043b\u0431\u0430 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435: 1 \u043c\u043c \u0440\u0442. \u0441\u0442. \u2248 133.322 \u041f\u0430 *\/float pressureToMmHg(float pa) {  return pa \/ 133.322f;}void get_data() {  sensors_event_t humidity, temp; \/\/ \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u044b\u0440\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 I2C-\u0434\u0430\u0442\u0447\u0438\u043a\u0430  aht.getEvent(&amp;humidity, &amp;temp);  \/* \u0421\u0431\u043e\u0440\u043a\u0430 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 dataBus.     \u0412\u0430\u0436\u043d\u043e: \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438,     \u0447\u0442\u043e\u0431\u044b \u0441\u0433\u043b\u0430\u0434\u0438\u0442\u044c \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439. *\/  dataBus[0] = (temp.temperature + bme.readTemperature()) \/ 2.0;  dataBus[1] = pressureToMmHg(bme.readPressure());  dataBus[2] = humidity.relative_humidity;  \/\/ \u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 SD-\u043a\u0430\u0440\u0442\u0435 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u043e\u0437\u0430\u043f\u0438\u0441\u0438 (\u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u0442 \u2014 \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f)  File file = SD.open(\"\/ESPstation_logs.txt\", FILE_APPEND);  if (file) {    \/* \u0417\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0411\u0415\u0417 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430 String (\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438!).       \u041c\u0435\u0442\u043e\u0434 print() \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435.       \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 F(\"...\") \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0432\u043e \u0444\u043b\u0435\u0448-\u043f\u0430\u043c\u044f\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e RAM. *\/    file.print(F(\"time after launch:\"));    file.print(millis() \/ 60000); \/\/ \u0412\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043c\u0438\u043d\u0443\u0442\u0430\u0445    file.print(F(\", temp: \"));    file.print(dataBus[0], 1);    \/\/ 1 \u0437\u043d\u0430\u043a \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439    file.print(F(\", MmHg: \"));    file.print(dataBus[1], 1);    file.print(F(\", humd: \"));    file.print(dataBus[2], 1);    file.println();               \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0441\u0442\u0440\u043e\u043a\u0438 (\\n)    file.close(); \/\/ \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b, \u0438\u043d\u0430\u0447\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0432 \u0431\u0443\u0444\u0435\u0440\u0435 \u0438 \u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438  } else {    Serial.println(F(\"Failed to open file for writing\"));  }}void handleRoot() {  \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \"\u043d\u0430 \u043b\u0435\u0442\u0443\"  String html = \"&lt;!DOCTYPE html&gt;\";  html += \"&lt;html&gt;&lt;head&gt;\";  \/\/ \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u0430\u0436\u0434\u044b\u0435 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0435\u0437 JS  html += \"&lt;meta http-equiv='refresh' content='3'&gt;\";  html += \"&lt;meta charset='UTF-8'&gt;\";    \/\/ \u0418\u043d\u043b\u0430\u0439\u043d-\u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0438  html += \"&lt;style&gt;\";  html += \"body { font-family: Montserrat, sans-serif; max-width: 600px; margin: 40px auto; padding: 20px; background: #f0f4f8; }\";  html += \"h1 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 10px; }\";  html += \"h2 { color: #34495e; margin-top: 30px; }\";  html += \".data-box { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin: 15px 0; }\";  html += \"&lt;\/style&gt;\";  html += \"&lt;\/head&gt;&lt;body&gt;\";  html += \"&lt;h1&gt;ESPstation: \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u044f&lt;\/h1&gt;\";  \/\/ \u0411\u043b\u043e\u043a \u0432\u044b\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u043d\u0430\u0442\u043d\u043e\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438  html += \"&lt;div class='data-box'&gt;\";  html += \"&lt;h2&gt;\u041a\u043e\u043c\u043d\u0430\u0442\u0430&lt;\/h2&gt;\";  html += \"&lt;p&gt;\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430: \" + String(dataBus[0], 1) + \" \u00b0C&lt;\/p&gt;\";  html += \"&lt;p&gt;\u0412\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c: \" + String(dataBus[2], 1) + \" %&lt;\/p&gt;\";  html += \"&lt;\/div&gt;\";  \/\/ \u0411\u043b\u043e\u043a \u0432\u044b\u0432\u043e\u0434\u0430 \u0430\u0442\u043c\u043e\u0441\u0444\u0435\u0440\u043d\u043e\u0433\u043e \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u044f  html += \"&lt;div class='data-box'&gt;\";  html += \"&lt;h2&gt;\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435&lt;\/h2&gt;\";  html += \"&lt;p&gt;\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \" + String(dataBus[1], 1) + \" \u043c\u043c \u0440\u0442. \u0441\u0442.&lt;\/p&gt;\";  html += \"&lt;\/div&gt;\";  html += \"&lt;\/body&gt;&lt;\/html&gt;\";  server.send(200, \"text\/html\", html); \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443}void setup() {  Serial.begin(115200); \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430 \u043f\u043e\u0440\u0442\u0430  delay(2000);          \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f  Serial.println(\"\\n=== Start ESPstation ===\");  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f SPI \u0441 \u044f\u0432\u043d\u044b\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043f\u0438\u043d\u043e\u0432 (\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0445 \u043f\u043b\u0430\u0442 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f GPIO)  SPI.begin(SCK, MISO, MOSI, CS);  \/\/ \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u0430\u0447\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f  delay(500);  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f SD \u043a\u0430\u0440\u0442\u044b.   \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0438\u043d CS \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u0443 SPI (4 \u041c\u0413\u0446 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043a\u0435\/\u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u043e\u0434\u0430\u0445)  if (!SD.begin(CS, SPI, 4000000)) {    Serial.println(F(\"Card Mount Failed! Check wiring and power.\"));    return; \/\/ \u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 setup, \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0431\u0435\u0437 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044f  }  uint8_t cardType = SD.cardType();  if (cardType == CARD_NONE) {    Serial.println(F(\"No SD card attached\"));    return;  }  \/\/ \u0414\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0430 \u0442\u0438\u043f\u0430 \u0438 \u043e\u0431\u044a\u0435\u043c\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b  Serial.print(F(\"SD Card Type: \"));  if (cardType == CARD_MMC) Serial.println(F(\"MMC\"));  else if (cardType == CARD_SD) Serial.println(F(\"SDSC\"));  else if (cardType == CARD_SDHC) Serial.println(F(\"SDHC\"));  else Serial.println(F(\"UNKNOWN\"));  uint64_t cardSize = SD.cardSize() \/ (1024 * 1024);  Serial.printf(F(\"SD Card Size: %lluMB\\n\"), cardSize);  \/\/ \u042f\u0432\u043d\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f I2C \u041f\u0415\u0420\u0415\u0414 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0441\u0435\u043d\u0441\u043e\u0440\u043e\u0432  Wire.begin();  delay(100); \/\/ \u0414\u0430\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u0448\u0438\u043d\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f BME280 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 0x77 (\u0430\u0434\u0440\u0435\u0441 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043e\u0434\u0442\u044f\u0436\u043a\u0438 \u043f\u0438\u043d\u0430 SDO \u043d\u0430 \u043f\u043b\u0430\u0442\u0435)  if (!bme.begin(0x77)) {    Serial.println(F(\"BME280 not found!\"));  }  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f AHT (\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0449\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 \u0448\u0438\u043d\u0435)  if (!aht.begin()) {    Serial.println(F(\"AHT not found!\"));  }  \/\/ \u041f\u043e\u0434\u043d\u044f\u0442\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (SoftAP). \u0421\u0442\u0430\u043d\u0446\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043a \u043c\u043e\u0434\u0443\u043b\u044e.  WiFi.softAP(ssid);  Serial.print(F(\"http:\/\/\"));  Serial.println(WiFi.softAPIP()); \/\/ \u0412\u044b\u0432\u043e\u0434\u0438\u043c IP-\u0430\u0434\u0440\u0435\u0441 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440  \/\/ \u041f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043f\u0443\u0442\u0438 (\"\/\") \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 HTML  server.on(\"\/\", handleRoot);  server.begin(); \/\/ \u0417\u0430\u043f\u0443\u0441\u043a \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430  Serial.println(F(\"\\nInitialization and test complete!\"));}void loop() {  static uint32_t tmr = 0; \/\/ \u0422\u0430\u0439\u043c\u0435\u0440 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 (\u0441\u0442\u0430\u0442\u0438\u043a \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438)    \/\/ \u041d\u0435\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440: \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 (PRD_WRITE)  if (millis() - tmr &gt;= PRD_WRITE) {    tmr = millis(); \/\/ \u0421\u0431\u0440\u043e\u0441 \u043e\u043f\u043e\u0440\u043d\u043e\u0439 \u043c\u0435\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438    get_data();     \/\/ \u0427\u0442\u0435\u043d\u0438\u0435 \u0441\u0435\u043d\u0441\u043e\u0440\u043e\u0432 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 SD  }    \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0432 \u0446\u0438\u043a\u043b\u0435)  server.handleClient();}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h2>\u0422\u0435\u0441\u0442\u044b<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043b\u0430\u0442\u0443 \u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044e, \u0436\u0434\u0435\u043c \u043f\u0430\u0440\u0443 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u0432\u043e\u0442:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8b5\/4cb\/923\/8b54cb923ba4a22d8d7ab8d6cb90d4f6.png\" alt=\"\u0412\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\" title=\"\u0412\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\" width=\"901\" height=\"950\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/8b5\/4cb\/923\/8b54cb923ba4a22d8d7ab8d6cb90d4f6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8b5\/4cb\/923\/8b54cb923ba4a22d8d7ab8d6cb90d4f6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0412\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c58\/45b\/769\/c5845b769c745fc95527fc51abb7899e.png\" alt=\"\u0414\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u0430\u0440\u0442\u044b\" title=\"\u0414\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u0430\u0440\u0442\u044b\" width=\"595\" height=\"183\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/c58\/45b\/769\/c5845b769c745fc95527fc51abb7899e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c58\/45b\/769\/c5845b769c745fc95527fc51abb7899e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0414\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u0430\u0440\u0442\u044b<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u0441\u0451 \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/p>\n<h2>\u0418\u0442\u043e\u0433\u0438<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043e\u0444\u0444\u043b\u0430\u0439\u043d \u043f\u043e\u0433\u043e\u0434\u043d\u044b\u0439 \u043b\u043e\u0433\u0433\u0435\u0440.<br \/>\u0418\u0434\u0435\u0438 \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e:<\/p>\n<ul>\n<li>\n<p>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f, \u0432\u044b\u0432\u043e\u0434\u0430 \u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0434\u0438\u0430\u0442\u043e\u0440 \u043d\u0430 \u043f\u043b\u0430\u0442\u0443 esp<\/p>\n<\/li>\n<li>\n<p>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0440\u043f\u0443\u0441<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0438 \u0438\u0434\u0435\u0438 \u043f\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<\/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=\"https:\/\/habr.com\/ru\/articles\/1060342\/\">https:\/\/habr.com\/ru\/articles\/1060342\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u041f\u0440\u0438\u0432\u0435\u0442 \u0425\u0430\u0431\u0440! \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0431\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e MQTT-\u0431\u0440\u043e\u043a\u0435\u0440\u0430. \u041f\u0440\u043e\u043f\u0430\u043b Wi-Fi \u2014 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043b\u0438\u043c\u0430\u0442\u0435 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u0430\u0440\u0438\u043b\u0438\u0441\u044c \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0413\u043e\u0442\u043e\u0432\u044b\u0435 \u043b\u043e\u0433\u0433\u0435\u0440\u044b \u0441\u0442\u043e\u044f\u0442 \u0434\u043e\u0440\u043e\u0433\u043e, \u0430 \u0438\u0445 \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u0435 \u041f\u041e \u043d\u0435 \u0434\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u044b\u0440\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c.  \u041c\u043d\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u0435\u0448\u0435\u0432\u043e\u0435 \u0438 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 &#171;\u0447\u0435\u0440\u043d\u044b\u0439 \u044f\u0449\u0438\u043a&#187; \u0434\u043b\u044f \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b \u0438 \u0431\u0430\u043b\u043a\u043e\u043d\u0430. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u044c \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0442\u0430, \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0430\u043c\u0435\u0440\u0430 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u0443\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e txt \u0444\u0430\u0439\u043b\u0430. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0431\u043b\u0430\u043a\u043e\u0432, \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043e\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u0437\u0435 ESP32-C3 Super Mini, \u0431\u0430\u0440\u043e\u043c\u0435\u0442\u0440\u0430 bme280, \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440\u0430!\u0412\u044b\u0431\u043e\u0440 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432\u0412\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b\u0412 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u044f \u0443\u0436\u0435 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u043b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043f\u043e\u0447\u0435\u043c\u0443 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0445:\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b\u041f\u043e\u0447\u0435\u043c\u0443\u0426\u0435\u043d\u0430Esp32c3 super mini\u041e\u0447\u0435\u043d\u044c \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043e\u0449\u043d\u0430\u044f.\u041e\u043a\u043e\u043b\u043e 250 \u0440\u0443\u0431.\u0421\u043e\u0432\u043c\u0435\u0449\u0451\u043d\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 bme280 + aht20\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f, \u0443 bme280 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u044d\u0442\u043e \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f aht20.\u041e\u043a\u043e\u043b\u043e 100 \u0440\u0443\u0431.\u041a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c sd-\u043a\u0430\u0440\u0442\u0443.\u041e\u043a\u043e\u043b\u043e 50 \u0440\u0443\u0431\u041c\u0430\u043a\u0435\u0442\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 + \u043a\u043e\u043d\u0435\u043a\u0442\u043e\u0440\u044b\u0418\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430.\u041e\u043a\u043e\u043b\u043e 30 \u0440\u0443\u0431\u0421\u0431\u043e\u0440\u043a\u0430\u042f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u043b \u0432\u0441\u0451 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435 3&#215;7 \u0441\u043c. \u0412\u043e\u0442 \u0444\u043e\u0442\u043e:\u0413\u043e\u0442\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u0412\u043e\u0442 \u0441\u0445\u0435\u043c\u0430 \u0441\u0431\u043e\u0440\u043a\u0438:\u041c\u043e\u0434\u0443\u043b\u044c\u041f\u0438\u043d \u043d\u0430 \u043d\u0451\u043c\u041f\u0438\u043d \u043d\u0430 esp32\u0434\u0430\u0442\u0447\u0438\u043a \u0441 bme280 \u0438 aht20vcc3v3\u0434\u0430\u0442\u0447\u0438\u043a \u0441 bme280 \u0438 aht20gndgnd\u0434\u0430\u0442\u0447\u0438\u043a \u0441 bme280 \u0438 aht20sclgpio 8\u0434\u0430\u0442\u0447\u0438\u043a \u0441 bme280 \u0438 aht20sdagpio 9\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u04403v33v3\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440gndgnd\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440csgpio 7\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440mosigpio 6\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440misogpio 5\u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440clkgpio 4\u0420\u0430\u0441\u043f\u0438\u043d\u043e\u0432\u043a\u0430 \u043f\u043b\u0430\u0442\u044besp32c3 super mini\u041a\u043e\u0434\u0412\u043e\u0442 \u043a\u043e\u0434 \u0441\u0445\u0435\u043c\u044b \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438:\/\/ \u041f\u0438\u043d\u044b SPI \u0434\u043b\u044f ESP32-C3 Super Mini (GPIO)#define SCK  4   \/\/ Serial Clock &#8212; \u0442\u0430\u043a\u0442\u043e\u0432\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u0448\u0438\u043d\u044b SPI#define MISO 5   \/\/ Master In Slave Out &#8212; \u043b\u0438\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u043a\u0430\u0440\u0442\u044b \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443#define MOSI 6   \/\/ Master Out Slave In &#8212; \u043b\u0438\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043a \u043a\u0430\u0440\u0442\u0435#define CS   7   \/\/ Chip Select &#8212; \u0432\u044b\u0431\u043e\u0440 \u0432\u0435\u0434\u043e\u043c\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 (SD-\u043a\u0430\u0440\u0442\u044b)\/\/ \u041f\u0435\u0440\u0438\u043e\u0434 \u043e\u043f\u0440\u043e\u0441\u0430 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043c\u0441 (1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430)#define PRD_WRITE 1000#include &lt;WiFi.h&gt;#include &lt;WebServer.h&gt;const char *ssid = &#171;ESPstation&#187;; \/\/ \u0418\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 Wi-FiWebServer server(80); \/\/ \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u0442\u0443 HTTP (80)#include &#171;SPI.h&#187;      \/\/ \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e SPI#include &#171;SD.h&#187;       \/\/ \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SD-\u043a\u0430\u0440\u0442\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 FS API#include &#171;FS.h&#187;       \/\/ \u0410\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Arduino#include &lt;GyverBME280.h&gt; \/\/ \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 BME280 (\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430, \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c)GyverBME280 bme;#include &lt;Adafruit_AHTX0.h&gt; \/\/ \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Adafruit \u0434\u043b\u044f AHT10\/AHT20 (\u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430, \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c)Adafruit_AHTX0 aht;float dataBus[] = {0.0, 0.0, 0.0}; \/* \u041c\u0430\u0441\u0441\u0438\u0432 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439:dataBus[0] \u2014 \u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 (\u00b0C)dataBus[1] \u2014 \u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (\u043c\u043c \u0440\u0442. \u0441\u0442.)dataBus[2] \u2014 \u0412\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c (%)*\/\/* \u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0437 \u041f\u0430\u0441\u043a\u0430\u043b\u0435\u0439 (\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 BME280) \u0432 \u043c\u0438\u043b\u043b\u0438\u043c\u0435\u0442\u0440\u044b \u0440\u0442\u0443\u0442\u043d\u043e\u0433\u043e \u0441\u0442\u043e\u043b\u0431\u0430 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435: 1 \u043c\u043c \u0440\u0442. \u0441\u0442. \u2248 133.322 \u041f\u0430 *\/float pressureToMmHg(float pa) {  return pa \/ 133.322f;}void get_data() {  sensors_event_t humidity, temp; \/\/ \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u044b\u0440\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 I2C-\u0434\u0430\u0442\u0447\u0438\u043a\u0430  aht.getEvent(&amp;humidity, &amp;temp);  \/* \u0421\u0431\u043e\u0440\u043a\u0430 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 dataBus.     \u0412\u0430\u0436\u043d\u043e: \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438,     \u0447\u0442\u043e\u0431\u044b \u0441\u0433\u043b\u0430\u0434\u0438\u0442\u044c \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0439. *\/  dataBus[0] = (temp.temperature + bme.readTemperature()) \/ 2.0;  dataBus[1] = pressureToMmHg(bme.readPressure());  dataBus[2] = humidity.relative_humidity;  \/\/ \u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 SD-\u043a\u0430\u0440\u0442\u0435 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u043e\u0437\u0430\u043f\u0438\u0441\u0438 (\u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u0442 \u2014 \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f)  File file = SD.open(&#171;\/ESPstation_logs.txt&#187;, FILE_APPEND);  if (file) {    \/* \u0417\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0411\u0415\u0417 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430 String (\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438!).       \u041c\u0435\u0442\u043e\u0434 print() \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435.       \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 F(&#171;&#8230;&#187;) \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0432\u043e \u0444\u043b\u0435\u0448-\u043f\u0430\u043c\u044f\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e RAM. *\/    file.print(F(&#171;time after launch:&#187;));    file.print(millis() \/ 60000); \/\/ \u0412\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043c\u0438\u043d\u0443\u0442\u0430\u0445    file.print(F(&#171;, temp: &#171;));    file.print(dataBus[0], 1);    \/\/ 1 \u0437\u043d\u0430\u043a \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439    file.print(F(&#171;, MmHg: &#171;));    file.print(dataBus[1], 1);    file.print(F(&#171;, humd: &#171;));    file.print(dataBus[2], 1);    file.println();               \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0441\u0442\u0440\u043e\u043a\u0438 (\\n)    file.close(); \/\/ \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b, \u0438\u043d\u0430\u0447\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0432 \u0431\u0443\u0444\u0435\u0440\u0435 \u0438 \u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438  } else {    Serial.println(F(&#171;Failed to open file for writing&#187;));  }}void handleRoot() {  \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b &#171;\u043d\u0430 \u043b\u0435\u0442\u0443&#187;  String html = &#171;&lt;!DOCTYPE html&gt;&#187;;  html += &#171;&lt;html&gt;&lt;head&gt;&#187;;  \/\/ \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u0430\u0436\u0434\u044b\u0435 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0435\u0437 JS  html += &#171;&lt;meta http-equiv=&#8217;refresh&#8217; content=&#8217;3&#8242;&gt;&#187;;  html += &#171;&lt;meta charset=&#8217;UTF-8&#8242;&gt;&#187;;    \/\/ \u0418\u043d\u043b\u0430\u0439\u043d-\u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0438  html += &#171;&lt;style&gt;&#187;;  html += &#171;body { font-family: Montserrat, sans-serif; max-width: 600px; margin: 40px auto; padding: 20px; background: #f0f4f8; }&#187;;  html += &#171;h1 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 10px; }&#187;;  html += &#171;h2 { color: #34495e; margin-top: 30px; }&#187;;  html += &#171;.data-box { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin: 15px 0; }&#187;;  html += &#171;&lt;\/style&gt;&#187;;  html += &#171;&lt;\/head&gt;&lt;body&gt;&#187;;  html += &#171;&lt;h1&gt;ESPstation: \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u044f&lt;\/h1&gt;&#187;;  \/\/ \u0411\u043b\u043e\u043a \u0432\u044b\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u043d\u0430\u0442\u043d\u043e\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438  html += &#171;&lt;div class=&#8217;data-box&#8217;&gt;&#187;;  html += &#171;&lt;h2&gt;\u041a\u043e\u043c\u043d\u0430\u0442\u0430&lt;\/h2&gt;&#187;;  html += &#171;&lt;p&gt;\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430: &#187; + String(dataBus[0], 1) + &#187; \u00b0C&lt;\/p&gt;&#187;;  html += &#171;&lt;p&gt;\u0412\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c: &#187; + String(dataBus[2], 1) + &#187; %&lt;\/p&gt;&#187;;  html += &#171;&lt;\/div&gt;&#187;;  \/\/ \u0411\u043b\u043e\u043a \u0432\u044b\u0432\u043e\u0434\u0430 \u0430\u0442\u043c\u043e\u0441\u0444\u0435\u0440\u043d\u043e\u0433\u043e \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u044f  html += &#171;&lt;div class=&#8217;data-box&#8217;&gt;&#187;;  html += &#171;&lt;h2&gt;\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435&lt;\/h2&gt;&#187;;  html += &#171;&lt;p&gt;\u0414\u0430\u0432\u043b\u0435\u043d\u0438\u0435: &#187; + String(dataBus[1], 1) + &#187; \u043c\u043c \u0440\u0442. \u0441\u0442.&lt;\/p&gt;&#187;;  html += &#171;&lt;\/div&gt;&#187;;  html += &#171;&lt;\/body&gt;&lt;\/html&gt;&#187;;  server.send(200, &#171;text\/html&#187;, html); \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443}void setup() {  Serial.begin(115200); \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430 \u043f\u043e\u0440\u0442\u0430  delay(2000);          \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f  Serial.println(&#171;\\n=== Start ESPstation ===&#187;);  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f SPI \u0441 \u044f\u0432\u043d\u044b\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043f\u0438\u043d\u043e\u0432 (\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0445 \u043f\u043b\u0430\u0442 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f GPIO)  SPI.begin(SCK, MISO, MOSI, CS);  \/\/ \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u0430\u0447\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f  delay(500);  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f SD \u043a\u0430\u0440\u0442\u044b.   \/\/ \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0438\u043d CS \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u0443 SPI (4 \u041c\u0413\u0446 \u0434\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043a\u0435\/\u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u043e\u0434\u0430\u0445)  if (!SD.begin(CS, SPI, 4000000)) {    Serial.println(F(&#171;Card Mount Failed! Check wiring and power.&#187;));    return; \/\/ \u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 setup, \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0431\u0435\u0437 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044f  }  uint8_t cardType = SD.cardType();  if (cardType == CARD_NONE) {    Serial.println(F(&#171;No SD card attached&#187;));    return;  }  \/\/ \u0414\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0430 \u0442\u0438\u043f\u0430 \u0438 \u043e\u0431\u044a\u0435\u043c\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b  Serial.print(F(&#171;SD Card Type: &#171;));  if (cardType == CARD_MMC) Serial.println(F(&#171;MMC&#187;));  else if (cardType == CARD_SD) Serial.println(F(&#171;SDSC&#187;));  else if (cardType == CARD_SDHC) Serial.println(F(&#171;SDHC&#187;));  else Serial.println(F(&#171;UNKNOWN&#187;));  uint64_t cardSize = SD.cardSize() \/ (1024 * 1024);  Serial.printf(F(&#171;SD Card Size: %lluMB\\n&#187;), cardSize);  \/\/ \u042f\u0432\u043d\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f I2C \u041f\u0415\u0420\u0415\u0414 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0441\u0435\u043d\u0441\u043e\u0440\u043e\u0432  Wire.begin();  delay(100); \/\/ \u0414\u0430\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u0448\u0438\u043d\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f BME280 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 0x77 (\u0430\u0434\u0440\u0435\u0441 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043e\u0434\u0442\u044f\u0436\u043a\u0438 \u043f\u0438\u043d\u0430 SDO \u043d\u0430 \u043f\u043b\u0430\u0442\u0435)  if (!bme.begin(0x77)) {    Serial.println(F(&#171;BME280 not found!&#187;));  }  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f AHT (\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0449\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 \u0448\u0438\u043d\u0435)  if (!aht.begin()) {    Serial.println(F(&#171;AHT not found!&#187;));  }  \/\/ \u041f\u043e\u0434\u043d\u044f\u0442\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (SoftAP). \u0421\u0442\u0430\u043d\u0446\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043a \u043c\u043e\u0434\u0443\u043b\u044e.  WiFi.softAP(ssid);  Serial.print(F(&#171;http:\/\/&#187;));  Serial.println(WiFi.softAPIP()); \/\/ \u0412\u044b\u0432\u043e\u0434\u0438\u043c IP-\u0430\u0434\u0440\u0435\u0441 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440  \/\/ \u041f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043f\u0443\u0442\u0438 (&#171;\/&#187;) \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 HTML  server.on(&#171;\/&#187;, handleRoot);  server.begin(); \/\/ \u0417\u0430\u043f\u0443\u0441\u043a \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430  Serial.println(F(&#171;\\nInitialization and test complete!&#187;));}void loop() {  static uint32_t tmr = 0; \/\/ \u0422\u0430\u0439\u043c\u0435\u0440 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 (\u0441\u0442\u0430\u0442\u0438\u043a \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438)    \/\/ \u041d\u0435\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440: \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 (PRD_WRITE)  if (millis() &#8212; tmr &gt;= PRD_WRITE) {    tmr = millis(); \/\/ \u0421\u0431\u0440\u043e\u0441 \u043e\u043f\u043e\u0440\u043d\u043e\u0439 \u043c\u0435\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438    get_data();     \/\/ \u0427\u0442\u0435\u043d\u0438\u0435 \u0441\u0435\u043d\u0441\u043e\u0440\u043e\u0432 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 SD  }    \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0432 \u0446\u0438\u043a\u043b\u0435)  server.handleClient();}\u0422\u0435\u0441\u0442\u044b\u0418\u0442\u0430\u043a, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043b\u0430\u0442\u0443 \u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044e, \u0436\u0434\u0435\u043c \u043f\u0430\u0440\u0443 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u0432\u043e\u0442:\u0412\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0414\u0430\u043d\u043d\u044b\u0435 \u0441 \u043a\u0430\u0440\u0442\u044b\u0412\u0441\u0451 \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!\u0418\u0442\u043e\u0433\u0438\u0418\u0442\u0430\u043a, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043e\u0444\u0444\u043b\u0430\u0439\u043d \u043f\u043e\u0433\u043e\u0434\u043d\u044b\u0439 \u043b\u043e\u0433\u0433\u0435\u0440.\u0418\u0434\u0435\u0438 \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e:\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f, \u0432\u044b\u0432\u043e\u0434\u0430 \u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0434\u0438\u0430\u0442\u043e\u0440 \u043d\u0430 \u043f\u043b\u0430\u0442\u0443 esp\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0440\u043f\u0443\u0441\u041f\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0438 \u0438\u0434\u0435\u0438 \u043f\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1060342\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-487697","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/487697","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=487697"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/487697\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=487697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=487697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=487697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}