{"id":319190,"date":"2021-03-08T03:00:12","date_gmt":"2021-03-08T03:00:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=319190"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=319190","title":{"rendered":"\u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043b\u044e\u0431\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043a\u043e\u0434\u0435 C \/ C++"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440\u043e\u0432\u0447\u0430\u043d\u0435!<\/p>\n<p>\u042d\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0447\u0435\u043c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u043d\u0435 \u043d\u043e\u0432 \u0438 \u044d\u0442\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439, \u043d\u043e \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0434\u0430\u0432\u043d\u043e \u0438\u0441\u043a\u0430\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0441 \u0445\u043e\u0434\u0443 \u043d\u0430\u0439\u0442\u0438 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/p>\n<h3>\u041e \u0447\u0435\u043c \u0440\u0435\u0447\u044c?<\/h3>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0430 \u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432: <strong>HTML<\/strong>, <strong>JS<\/strong>, <strong>CSS<\/strong>; \u0431\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438. \u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c <strong>\u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435<\/strong> \u0444\u0430\u0439\u043b\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <strong>\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/strong>) \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044f \u0438\u0445 \u0432 <strong>HEX<\/strong>. \u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 <strong>HEX<\/strong> \u0438\u043b\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438\u0441\u043a\u0430\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u0432 <u>\u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/u>.<\/p>\n<h3>\u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442<\/h3>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440, c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u043e\u043a:<\/p>\n<pre><code class=\"cpp\">const char text[] =     \"&lt;html&gt;\"            \"\\r\\n\"     \"&lt;body&gt;Text&lt;\/body&gt;\" \"\\r\\n\"     \"&lt;\/html&gt;\";<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440, \u0441 <strong>HEX<\/strong> (\u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445):<\/p>\n<pre><code class=\"cpp\">const char text[] =     {         0x3C, 0x68, 0x74, 0x6D, 0x6C, 0x3E, 0x0A, 0x3C,         0x62, 0x6F, 0x64, 0x79, 0x3E, 0x54, 0x65, 0x78,         0x74, 0x3C, 0x2F, 0x62, 0x6F, 0x64, 0x79, 0x3E,         0x0A, 0x3C, 0x2F, 0x68, 0x74, 0x6D, 0x6C, 0x3E,         0     };<\/code><\/pre>\n<p>\u0412\u0438\u0434\u0435\u043b \u0434\u0430\u0436\u0435 \u0442\u0430\u043a\u043e\u0435:<\/p>\n<pre><code class=\"cpp\">#define TEXT \"&lt;html&gt;\\r\\n&lt;body&gt;Text&lt;\/body&gt;\\r\\n&lt;\/html&gt;\" const char text[] = TEXT;<\/code><\/pre>\n<p>\u0412\u0441\u0435 #define \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0438\u0441\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c <strong>.h<\/strong> \u0444\u0430\u0439\u043b\u0435 \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043d\u0430 <strong>Python<\/strong>. \u0421 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044b <strong>\\<\/strong> \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435. \u0427\u0435\u0441\u0442\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u043e\u043b\u043e\u0441\u044b \u0434\u044b\u0431\u043e\u043c \u0432\u0441\u0442\u0430\u043b\u0438 \u043e\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0430\u0437\u043e\u0445\u0438\u0437\u043c\u0430.<\/p>\n<p>\u0410 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0432\u0441\u0451 \u0441\u0430\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u043e\u0441\u044c \u0438 \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">extern const char text[];<\/code><\/pre>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u0432 <strong>Assembler<\/strong>.<\/p>\n<h3>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0432 Arduino IDE<\/h3>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>text.S<\/strong>, \u0442\u0430\u043c \u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0444\u0430\u0439\u043b <strong>text.htm<\/strong>.<\/p>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>text.htm<\/strong>:<\/p>\n<pre><code class=\"xml\">&lt;html&gt; &lt;body&gt;Text&lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>text.S<\/strong>:<\/p>\n<pre><code class=\"cpp\">.global text .section .rodata.myfiles text:     .incbin \"text.htm\"     .byte 0<\/code><\/pre>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b <strong>\\0<\/strong> \u0432 \u043a\u043e\u043d\u0446\u0435, \u043e\u043d \u0437\u0434\u0435\u0441\u044c \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u0430\u043c \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0421\u0430\u043c \u0441\u043a\u0435\u0442\u0447:<\/p>\n<pre><code class=\"cpp\">extern const char text[] PROGMEM;  void setup() {     Serial.begin(115200);     Serial.println(text); }  void loop() { }<\/code><\/pre>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u044b\u0432\u043e\u0434:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f86\/bfe\/d47\/f86bfed4761e563b3d4fd78996ffc20d.png\" width=\"897\" height=\"317\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0431\u044b \u044f \u043e\u0442 \u0440\u0430\u0434\u043e\u0441\u0442\u0438 \u043f\u0440\u044b\u0433\u0430\u043b \u0434\u043e \u043f\u043e\u0442\u043e\u043b\u043a\u0430, \u043e\u0442 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0432\u0441\u0451 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/p>\n<p>\u041a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 <strong>AVR8<\/strong>, \u043d\u043e \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 <strong>ESP8266<\/strong> \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439 \u0441\u0431\u043e\u0439. \u0412\u0441\u0451 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0447\u0442\u0435\u043d\u0438\u0435 \u0438\u0437 <strong>Flash<\/strong> \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e <strong>32 \u0431\u0438\u0442\u0430<\/strong> \u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0430\u043c \u043a\u0440\u0430\u0442\u043d\u044b\u043c <strong>32 \u0431\u0438\u0442<\/strong>. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0432\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e, \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f \u0434\u043b\u044f \u043a\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">.global text .section .rodata.myfiles  .align 4 text:     .incbin \"text.htm\"     .byte 0<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0432 \u0441\u0435\u043a\u0446\u0438\u044e \u043a\u043e\u0434\u0430: <strong>.irom.text<\/strong>, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043c\u0435\u0441\u0442\u0430 \u0432 <strong>.rodata<\/strong>.<\/p>\n<p>\u0414\u043b\u044f <strong>STM32<\/strong> \u0442\u0430\u043a \u0436\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u043f\u043e <strong>32 \u0431\u0438\u0442\u0430<\/strong>, \u043d\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0410 \u043a\u0430\u043a \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e \u043d\u0443\u043b\u0435\u0432\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443. \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<pre><code class=\"cpp\">.global text, text_size  .section .rodata.myfiles  text:     .incbin \"text.htm\"     text_end:     .byte 0  text_size: \t.word (text_end - text)<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"cpp\">extern const char text[] PROGMEM; extern const uint16_t text_size PROGMEM;<\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<pre><code class=\"cpp\">.macro addFile name file     .global \\name, \\name\\()_size \/\/  .align 4     \\name:         .incbin \"\\file\"         \\name\\()_end:         .byte 0 \/\/  .align 4     \\name\\()_size:         .word (\\name\\()_end - \\name) .endm  .section .rodata.myfiles  addFile text1   1.txt addFile text2   2.txt addFile text3   3.txt<\/code><\/pre>\n<p>\u0418 \u043c\u0430\u043a\u0440\u043e\u0441 \u0434\u043b\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"cpp\">#define ADD_FILE(name) \\     extern const char name[] PROGMEM; \\     extern const uint16_t name##_size PROGMEM;  ADD_FILE(text1); ADD_FILE(text2); ADD_FILE(text3);  void setup() {     Serial.begin(115200);     Serial.println(text1);     Serial.println(text1_size);     Serial.println(text2);     Serial.println(text2_size);     Serial.println(text3);     Serial.println(text3_size); }  void loop() { }<\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3bf\/4a7\/2be\/3bf4a72be9715ec3d12dd32296ccf834.png\" width=\"897\" height=\"353\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0444\u0430\u0439\u043b \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043b\u044e\u0431\u044b\u043c \u0442\u0438\u043f\u043e\u043c, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c.<\/p>\n<h3>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u044e\u0431\u043e\u0439 \u0444\u0430\u0439\u043b \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e, \u0432 GNU toolchain<\/h3>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439, \u043d\u0438 \u0447\u0435\u043c \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f <strong>Arduino<\/strong>. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432 <strong>Arduino<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u0442 \u0436\u0435 <strong>toolchain<\/strong> \u043e\u0442 <strong>Atmel<\/strong>.<\/p>\n<p>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0434\u0435\u0441\u044c \u0443 \u043d\u0430\u0441 \u0432 \u0440\u0443\u043a\u0430\u0445 <strong>Makefile<\/strong> \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u043e\u0437\u044c\u043c\u0443 \u043a\u043e\u0434 \u0438\u0437 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 <strong>STM32<\/strong>, \u0433\u0434\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441\u0431\u043e\u0440\u043a\u0438. \u0422\u0430\u043a \u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 <strong>WEB-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/strong> \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 <strong>LWIP<\/strong> \/ <strong>HTTPD<\/strong>.<\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 <strong>version.sh<\/strong>:<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash # Version generator # running script from pre-build  MAJOR=1 MINOR=0  cd \"$(dirname $0)\" &amp;&gt;\/dev\/null  FILE_VERSION=\"version.txt\" FILE_ASM=\"version.S\"  BUILD=$(head -n1 \"$FILE_VERSION\" 2&gt;\/dev\/null) if [ -z \"$BUILD\" ]; then \tBUILD=0 else \tBUILD=$(expr $BUILD + 1) fi echo -n \"$BUILD\" &gt;\"$FILE_VERSION\"  cat &lt;&lt;EOF &gt;\"$FILE_ASM\" \/** * no editing, automatically generated from version.sh *\/  .section .rodata .global __version_major .global __version_minor .global __version_build __version_major: .word $MAJOR __version_minor: .word $MINOR __version_build: .word $BUILD .end EOF  cd - &amp;&gt;\/dev\/null exit 0<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0444\u0430\u0439\u043b <strong>version.S<\/strong> \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0437 <strong>version.txt<\/strong> \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u043c\u0435\u0440 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<p>\u0412 <strong>Makefile<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u044c <strong>pre-build<\/strong>:<\/p>\n<pre><code class=\"bash\">####################################### # pre-build script ####################################### pre-build: \tbash version.sh<\/code><\/pre>\n<p>\u0412 \u0446\u0435\u043b\u044c <strong>all<\/strong> \u043d\u0430\u0434\u043e \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c <strong>pre-build<\/strong>:<\/p>\n<pre><code class=\"bash\">all: pre-build $(BUILD_DIR)\/$(TARGET).elf $(BUILD_DIR)\/$(TARGET).hex $(BUILD_DIR)\/$(TARGET).bin<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0434\u043b\u044f <strong>printf <\/strong>\u0443 \u043c\u0435\u043d\u044f \u0432 <strong>macro.h<\/strong>:<\/p>\n<pre><code class=\"cpp\">extern const uint16_t __version_major; extern const uint16_t __version_minor; extern const uint16_t __version_build; #define FMT_VER             \"%u.%u.%u\" #define FMT_VER_VAL         __version_major, __version_minor, __version_build<\/code><\/pre>\n<p>\u0412 <strong>HTTPD<\/strong> \u0438\u0437 <strong>LWIP<\/strong> \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u043b \u0443\u0434\u0438\u0432\u043b\u0451\u043d \u043a\u043e\u0433\u0434\u0430 \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0434\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c\u0438 <strong>HTTP<\/strong>. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0434\u0435\u043b\u0430\u043b \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <strong>fsdata.c<\/strong>. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <strong>fsdata_custom.c<\/strong>, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0444\u043b\u0430\u0433 <strong>HTTPD_USE_CUSTOM_FSDATA<\/strong>.<\/p>\n<p>\u041a\u043e\u0434 \u0432 <strong>fsdata_custom.c<\/strong>:<\/p>\n<pre><code class=\"cpp\">#include \"lwip\/apps\/fs.h\" #include \"lwip\/def.h\" #include \"fsdata.h\" #include \"macro.h\"  extern const struct fsdata_file __fs_root;  #define FS_ROOT &amp;__fs_root<\/code><\/pre>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 <strong>fsdata_make.S<\/strong>:<\/p>\n<pre><code class=\"cpp\">.macro addData name file mime \t\\name\\(): \t.string \"\/\\file\\()\" \t\\name\\()_data: \t.incbin \"mime\/\\mime\\().txt\" \t.incbin \"\\file\\()\" \t\\name\\()_end: .endm  .macro addFile name next \t\\name\\()_file: \t.word \\next\\() \t.word \\name\\() \t.word \\name\\()_data \t.word \\name\\()_end - \\name\\()_data \t.word 1 .endm  .section .rodata.fsdata .global __fs_root  \/* Load files *\/ addData __index_htm         index.htm           html addData __styles_css        styles.css          css addData __lib_js            lib.js              js addData __ui_js             ui.js               js addData __404_htm           404.htm             404 addData __favicon_ico       img\/favicon.ico     ico addData __logo_png          img\/logo.png        png  \/* FSDATA Table *\/ addFile __logo_png          0 addFile __favicon_ico       __logo_png_file addFile __404_htm           __favicon_ico_file addFile __ui_js             __404_htm_file addFile __lib_js            __ui_js_file addFile __styles_css        __lib_js_file __fs_root: addFile __index_htm         __styles_css_file  .end <\/code><\/pre>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <strong>mime<\/strong>.<\/p>\n<p>\u0424\u0430\u0439\u043b <strong>html.txt<\/strong>:<\/p>\n<pre><code class=\"markdown\">HTTP\/1.1 200 OK Content-Type: text\/html; charset=UTF-8 Connection: close  <\/code><\/pre>\n<p>\u0424\u0430\u0439\u043b <strong>404.txt<\/strong>:<\/p>\n<pre><code class=\"markdown\">HTTP\/1.1 404 Not found Content-Type: text\/plain; charset=UTF-8 Connection: close  <\/code><\/pre>\n<p>\u041d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0447\u0435\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f <strong>HTTP<\/strong> \u0434\u043b\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0446\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430. \u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c <strong>CRLF<\/strong> (\\r\\n).<\/p>\n<p><strong>P.S. <\/strong>\u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438\u0437 \u0432\u0435\u0442\u0445\u043e\u0433\u043e \u0441\u0443\u043d\u0434\u0443\u043a\u0430, \u0442\u0430\u043a \u0447\u0442\u043e \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0433 \u0437\u0430\u0431\u044b\u0442\u044c \u0447\u0435\u0433\u043e \u043d\u0438 \u0431\u0443\u0434\u044c \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c.<\/p>\n<h3>\u0412 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438<\/h3>\n<p>\u0414\u043e\u043b\u0433\u043e \u0438\u0441\u043a\u0430\u043b, \u0447\u0442\u043e \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043c\u043e\u0439 \u043e\u043f\u044b\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0443 \u0438 \u0433\u0443\u0440\u0443.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043e\u043a!<\/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\/post\/545946\/\"> https:\/\/habr.com\/ru\/post\/545946\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440\u043e\u0432\u0447\u0430\u043d\u0435!<\/p>\n<p>\u042d\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0447\u0435\u043c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u043d\u0435 \u043d\u043e\u0432 \u0438 \u044d\u0442\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439, \u043d\u043e \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0434\u0430\u0432\u043d\u043e \u0438\u0441\u043a\u0430\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0441 \u0445\u043e\u0434\u0443 \u043d\u0430\u0439\u0442\u0438 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/p>\n<h3>\u041e \u0447\u0435\u043c \u0440\u0435\u0447\u044c?<\/h3>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0430 \u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432: <strong>HTML<\/strong>, <strong>JS<\/strong>, <strong>CSS<\/strong>; \u0431\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438. \u0422\u0430\u043a \u0436\u0435 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c <strong>\u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435<\/strong> \u0444\u0430\u0439\u043b\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <strong>\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/strong>) \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044f \u0438\u0445 \u0432 <strong>HEX<\/strong>. \u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 <strong>HEX<\/strong> \u0438\u043b\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438\u0441\u043a\u0430\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u0432 <u>\u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/u>.<\/p>\n<h3>\u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442<\/h3>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440, c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u043e\u043a:<\/p>\n<pre><code class=\"cpp\">const char text[] =     \"&lt;html&gt;\"            \"\\r\\n\"     \"&lt;body&gt;Text&lt;\/body&gt;\" \"\\r\\n\"     \"&lt;\/html&gt;\";<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440, \u0441 <strong>HEX<\/strong> (\u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445):<\/p>\n<pre><code class=\"cpp\">const char text[] =     {         0x3C, 0x68, 0x74, 0x6D, 0x6C, 0x3E, 0x0A, 0x3C,         0x62, 0x6F, 0x64, 0x79, 0x3E, 0x54, 0x65, 0x78,         0x74, 0x3C, 0x2F, 0x62, 0x6F, 0x64, 0x79, 0x3E,         0x0A, 0x3C, 0x2F, 0x68, 0x74, 0x6D, 0x6C, 0x3E,         0     };<\/code><\/pre>\n<p>\u0412\u0438\u0434\u0435\u043b \u0434\u0430\u0436\u0435 \u0442\u0430\u043a\u043e\u0435:<\/p>\n<pre><code class=\"cpp\">#define TEXT \"&lt;html&gt;\\r\\n&lt;body&gt;Text&lt;\/body&gt;\\r\\n&lt;\/html&gt;\" const char text[] = TEXT;<\/code><\/pre>\n<p>\u0412\u0441\u0435 #define \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0438\u0441\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c <strong>.h<\/strong> \u0444\u0430\u0439\u043b\u0435 \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043d\u0430 <strong>Python<\/strong>. \u0421 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044b <strong>\\<\/strong> \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435. \u0427\u0435\u0441\u0442\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u043e\u043b\u043e\u0441\u044b \u0434\u044b\u0431\u043e\u043c \u0432\u0441\u0442\u0430\u043b\u0438 \u043e\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0430\u0437\u043e\u0445\u0438\u0437\u043c\u0430.<\/p>\n<p>\u0410 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0432\u0441\u0451 \u0441\u0430\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u043e\u0441\u044c \u0438 \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">extern const char text[];<\/code><\/pre>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u0432 <strong>Assembler<\/strong>.<\/p>\n<h3>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0432 Arduino IDE<\/h3>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>text.S<\/strong>, \u0442\u0430\u043c \u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0444\u0430\u0439\u043b <strong>text.htm<\/strong>.<\/p>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>text.htm<\/strong>:<\/p>\n<pre><code class=\"xml\">&lt;html&gt; &lt;body&gt;Text&lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>text.S<\/strong>:<\/p>\n<pre><code class=\"cpp\">.global text .section .rodata.myfiles text:     .incbin \"text.htm\"     .byte 0<\/code><\/pre>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b <strong>\\0<\/strong> \u0432 \u043a\u043e\u043d\u0446\u0435, \u043e\u043d \u0437\u0434\u0435\u0441\u044c \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u0430\u043c \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0421\u0430\u043c \u0441\u043a\u0435\u0442\u0447:<\/p>\n<pre><code class=\"cpp\">extern const char text[] PROGMEM;  void setup() {     Serial.begin(115200);     Serial.println(text); }  void loop() { }<\/code><\/pre>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u044b\u0432\u043e\u0434:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0431\u044b \u044f \u043e\u0442 \u0440\u0430\u0434\u043e\u0441\u0442\u0438 \u043f\u0440\u044b\u0433\u0430\u043b \u0434\u043e \u043f\u043e\u0442\u043e\u043b\u043a\u0430, \u043e\u0442 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0432\u0441\u0451 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/p>\n<p>\u041a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 <strong>AVR8<\/strong>, \u043d\u043e \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 <strong>ESP8266<\/strong> \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439 \u0441\u0431\u043e\u0439. \u0412\u0441\u0451 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0447\u0442\u0435\u043d\u0438\u0435 \u0438\u0437 <strong>Flash<\/strong> \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e <strong>32 \u0431\u0438\u0442\u0430<\/strong> \u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0430\u043c \u043a\u0440\u0430\u0442\u043d\u044b\u043c <strong>32 \u0431\u0438\u0442<\/strong>. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0432\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e, \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f \u0434\u043b\u044f \u043a\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">.global text .section .rodata.myfiles  .align 4 text:     .incbin \"text.htm\"     .byte 0<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0432 \u0441\u0435\u043a\u0446\u0438\u044e \u043a\u043e\u0434\u0430: <strong>.irom.text<\/strong>, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043c\u0435\u0441\u0442\u0430 \u0432 <strong>.rodata<\/strong>.<\/p>\n<p>\u0414\u043b\u044f <strong>STM32<\/strong> \u0442\u0430\u043a \u0436\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u043f\u043e <strong>32 \u0431\u0438\u0442\u0430<\/strong>, \u043d\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0410 \u043a\u0430\u043a \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e \u043d\u0443\u043b\u0435\u0432\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443. \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<pre><code class=\"cpp\">.global text, text_size  .section .rodata.myfiles  text:     .incbin \"text.htm\"     text_end:     .byte 0  text_size: \t.word (text_end - text)<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"cpp\">extern const char text[] PROGMEM; extern const uint16_t text_size PROGMEM;<\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<pre><code class=\"cpp\">.macro addFile name file     .global \\name, \\name\\()_size \/\/  .align 4     \\name:         .incbin \"\\file\"         \\name\\()_end:         .byte 0 \/\/  .align 4     \\name\\()_size:         .word (\\name\\()_end - \\name) .endm  .section .rodata.myfiles  addFile text1   1.txt addFile text2   2.txt addFile text3   3.txt<\/code><\/pre>\n<p>\u0418 \u043c\u0430\u043a\u0440\u043e\u0441 \u0434\u043b\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"cpp\">#define ADD_FILE(name) \\     extern const char name[] PROGMEM; \\     extern const uint16_t name##_size PROGMEM;  ADD_FILE(text1); ADD_FILE(text2); ADD_FILE(text3);  void setup() {     Serial.begin(115200);     Serial.println(text1);     Serial.println(text1_size);     Serial.println(text2);     Serial.println(text2_size);     Serial.println(text3);     Serial.println(text3_size); }  void loop() { }<\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0444\u0430\u0439\u043b \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043b\u044e\u0431\u044b\u043c \u0442\u0438\u043f\u043e\u043c, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c.<\/p>\n<h3>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u044e\u0431\u043e\u0439 \u0444\u0430\u0439\u043b \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e, \u0432 GNU toolchain<\/h3>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439, \u043d\u0438 \u0447\u0435\u043c \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f <strong>Arduino<\/strong>. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432 <strong>Arduino<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u0442 \u0436\u0435 <strong>toolchain<\/strong> \u043e\u0442 <strong>Atmel<\/strong>.<\/p>\n<p>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0434\u0435\u0441\u044c \u0443 \u043d\u0430\u0441 \u0432 \u0440\u0443\u043a\u0430\u0445 <strong>Makefile<\/strong> \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u043e\u0437\u044c\u043c\u0443 \u043a\u043e\u0434 \u0438\u0437 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 <strong>STM32<\/strong>, \u0433\u0434\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441\u0431\u043e\u0440\u043a\u0438. \u0422\u0430\u043a \u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 <strong>WEB-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/strong> \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 <strong>LWIP<\/strong> \/ <strong>HTTPD<\/strong>.<\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 <strong>version.sh<\/strong>:<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash # Version generator # running script from pre-build  MAJOR=1 MINOR=0  cd \"$(dirname $0)\" &amp;&gt;\/dev\/null  FILE_VERSION=\"version.txt\" FILE_ASM=\"version.S\"  BUILD=$(head -n1 \"$FILE_VERSION\" 2&gt;\/dev\/null) if [ -z \"$BUILD\" ]; then \tBUILD=0 else \tBUILD=$(expr $BUILD + 1) fi echo -n \"$BUILD\" &gt;\"$FILE_VERSION\"  cat &lt;&lt;EOF &gt;\"$FILE_ASM\" \/** * no editing, automatically generated from version.sh *\/  .section .rodata .global __version_major .global __version_minor .global __version_build __version_major: .word $MAJOR __version_minor: .word $MINOR __version_build: .word $BUILD .end EOF  cd - &amp;&gt;\/dev\/null exit 0<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0444\u0430\u0439\u043b <strong>version.S<\/strong> \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0437 <strong>version.txt<\/strong> \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u043c\u0435\u0440 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<p>\u0412 <strong>Makefile<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u044c <strong>pre-build<\/strong>:<\/p>\n<pre><code class=\"bash\">####################################### # pre-build script ####################################### pre-build: \tbash version.sh<\/code><\/pre>\n<p>\u0412 \u0446\u0435\u043b\u044c <strong>all<\/strong> \u043d\u0430\u0434\u043e \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c <strong>pre-build<\/strong>:<\/p>\n<pre><code class=\"bash\">all: pre-build $(BUILD_DIR)\/$(TARGET).elf $(BUILD_DIR)\/$(TARGET).hex $(BUILD_DIR)\/$(TARGET).bin<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0434\u043b\u044f <strong>printf <\/strong>\u0443 \u043c\u0435\u043d\u044f \u0432 <strong>macro.h<\/strong>:<\/p>\n<pre><code class=\"cpp\">extern const uint16_t __version_major; extern const uint16_t __version_minor; extern const uint16_t __version_build; #define FMT_VER             \"%u.%u.%u\" #define FMT_VER_VAL         __version_major, __version_minor, __version_build<\/code><\/pre>\n<p>\u0412 <strong>HTTPD<\/strong> \u0438\u0437 <strong>LWIP<\/strong> \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u043b \u0443\u0434\u0438\u0432\u043b\u0451\u043d \u043a\u043e\u0433\u0434\u0430 \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0434\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c\u0438 <strong>HTTP<\/strong>. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0434\u0435\u043b\u0430\u043b \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <strong>fsdata.c<\/strong>. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <strong>fsdata_custom.c<\/strong>, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0444\u043b\u0430\u0433 <strong>HTTPD_USE_CUSTOM_FSDATA<\/strong>.<\/p>\n<p>\u041a\u043e\u0434 \u0432 <strong>fsdata_custom.c<\/strong>:<\/p>\n<pre><code class=\"cpp\">#include \"lwip\/apps\/fs.h\" #include \"lwip\/def.h\" #include \"fsdata.h\" #include \"macro.h\"  extern const struct fsdata_file __fs_root;  #define FS_ROOT &amp;__fs_root<\/code><\/pre>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 <strong>fsdata_make.S<\/strong>:<\/p>\n<pre><code class=\"cpp\">.macro addData name file mime \t\\name\\(): \t.string \"\/\\file\\()\" \t\\name\\()_data: \t.incbin \"mime\/\\mime\\().txt\" \t.incbin \"\\file\\()\" \t\\name\\()_end: .endm  .macro addFile name next \t\\name\\()_file: \t.word \\next\\() \t.word \\name\\() \t.word \\name\\()_data \t.word \\name\\()_end - \\name\\()_data \t.word 1 .endm  .section .rodata.fsdata .global __fs_root  \/* Load files *\/ addData __index_htm         index.htm           html addData __styles_css        styles.css          css addData __lib_js            lib.js              js addData __ui_js             ui.js               js addData __404_htm           404.htm             404 addData __favicon_ico       img\/favicon.ico     ico addData __logo_png          img\/logo.png        png  \/* FSDATA Table *\/ addFile __logo_png          0 addFile __favicon_ico       __logo_png_file addFile __404_htm           __favicon_ico_file addFile __ui_js             __404_htm_file addFile __lib_js            __ui_js_file addFile __styles_css        __lib_js_file __fs_root: addFile __index_htm         __styles_css_file  .end <\/code><\/pre>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043f\u0430\u0440\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <strong>mime<\/strong>.<\/p>\n<p>\u0424\u0430\u0439\u043b <strong>html.txt<\/strong>:<\/p>\n<pre><code class=\"markdown\">HTTP\/1.1 200 OK Content-Type: text\/html; charset=UTF-8 Connection: close  <\/code><\/pre>\n<p>\u0424\u0430\u0439\u043b <strong>404.txt<\/strong>:<\/p>\n<pre><code class=\"markdown\">HTTP\/1.1 404 Not found Content-Type: text\/plain; charset=UTF-8 Connection: close  <\/code><\/pre>\n<p>\u041d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0447\u0435\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f <strong>HTTP<\/strong> \u0434\u043b\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0446\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430. \u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c <strong>CRLF<\/strong> (\\r\\n).<\/p>\n<p><strong>P.S. <\/strong>\u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438\u0437 \u0432\u0435\u0442\u0445\u043e\u0433\u043e \u0441\u0443\u043d\u0434\u0443\u043a\u0430, \u0442\u0430\u043a \u0447\u0442\u043e \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0433 \u0437\u0430\u0431\u044b\u0442\u044c \u0447\u0435\u0433\u043e \u043d\u0438 \u0431\u0443\u0434\u044c \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c.<\/p>\n<h3>\u0412 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438<\/h3>\n<p>\u0414\u043e\u043b\u0433\u043e \u0438\u0441\u043a\u0430\u043b, \u0447\u0442\u043e \u0438\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043c\u043e\u0439 \u043e\u043f\u044b\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0443 \u0438 \u0433\u0443\u0440\u0443.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043e\u043a!<\/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\/post\/545946\/\"> https:\/\/habr.com\/ru\/post\/545946\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-319190","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319190","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=319190"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319190\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}