{"id":857,"date":"2022-11-12T20:00:41","date_gmt":"2022-11-12T13:00:41","guid":{"rendered":"https:\/\/iotkiddie.com\/blog\/?p=857"},"modified":"2022-11-12T22:44:08","modified_gmt":"2022-11-12T15:44:08","slug":"serial-uart-esp-stm","status":"publish","type":"post","link":"https:\/\/iotkiddie.com\/blog\/serial-uart-esp-stm\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1a\u0e2d\u0e23\u0e4c\u0e14\u0e14\u0e49\u0e27\u0e22 Serial UART"},"content":{"rendered":"\n<p>\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1a\u0e2d\u0e23\u0e4c\u0e142\u0e1a\u0e2d\u0e23\u0e4c\u0e14 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e41\u0e25\u0e01\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e01\u0e31\u0e19<\/p>\n\n\n\n<p>\u0e43\u0e19\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e2d\u0e23\u0e4c\u0e14 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colibri-color-4-color\"><strong>STM32F103C8T6<\/strong> <\/mark>\u0e01\u0e31\u0e1a <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-colibri-color-1-color\">ESP8266<\/mark><\/strong> \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e41\u0e25\u0e01\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e01\u0e31\u0e19<\/p>\n\n\n\n<p>\u0e1a\u0e2d\u0e23\u0e4c\u0e14 STM \u0e08\u0e30\u0e43\u0e0a\u0e49 Hardware Serial \u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1a\u0e2d\u0e23\u0e4c\u0e14<\/p>\n\n\n\n<p>\u0e2a\u0e48\u0e27\u0e19 ESP \u0e08\u0e30\u0e43\u0e0a\u0e49 Software Serial \u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_25 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u0e2a\u0e32\u0e23\u0e1a\u0e31\u0e0d \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e04\u0e25\u0e34\u0e01\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e1b\u0e14\u0e39\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><label for=\"item\" aria-label=\"Table of Content\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/label><input type=\"checkbox\" id=\"item\"><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/iotkiddie.com\/blog\/serial-uart-esp-stm\/#%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%88%E0%B8%B2%E0%B8%81_Serial\" title=\"\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 Serial\">\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 Serial<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/iotkiddie.com\/blog\/serial-uart-esp-stm\/#%E0%B8%97%E0%B8%94%E0%B8%A5%E0%B8%AD%E0%B8%87%E0%B8%AA%E0%B9%88%E0%B8%87%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%88%E0%B8%B2%E0%B8%81%E0%B8%9A%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%94_STM_%E0%B9%84%E0%B8%9B%E0%B8%A2%E0%B8%B1%E0%B8%87_ESP\" title=\"\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01\u0e1a\u0e2d\u0e23\u0e4c\u0e14 STM \u0e44\u0e1b\u0e22\u0e31\u0e07 ESP\">\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01\u0e1a\u0e2d\u0e23\u0e4c\u0e14 STM \u0e44\u0e1b\u0e22\u0e31\u0e07 ESP<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%88%E0%B8%B2%E0%B8%81_Serial\"><\/span>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 Serial<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u0e40\u0e23\u0e34\u0e48\u0e21\u0e41\u0e23\u0e01\u0e14\u0e49\u0e27\u0e22\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 ReadASCIIString <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"789\" height=\"573\" src=\"https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-20.png\" alt=\"\" class=\"wp-image-858\" srcset=\"https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-20.png 789w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-20-300x218.png 300w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-20-768x558.png 768w\" sizes=\"(max-width: 789px) 100vw, 789px\" \/><\/figure>\n\n\n\n<p>\u0e25\u0e1a\u0e1a\u0e32\u0e07\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e2d\u0e01\u0e40\u0e1e\u0e23\u0e32\u0e30\u0e21\u0e35\u0e1a\u0e32\u0e07\u0e1e\u0e34\u0e19\u0e43\u0e19\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49\u0e43\u0e0a\u0e49\u0e1a\u0e19\u0e1a\u0e2d\u0e23\u0e4c\u0e14 ESP8266 \u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 \u0e08\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e1a\u0e2d\u0e23\u0e4c\u0e14\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 \u0e41\u0e25\u0e30\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 buadrate \u0e40\u0e1b\u0e47\u0e19 115200<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void setup() {\n  \/\/ initialize serial:\n  Serial.begin(115200);\n}\n\nvoid loop() {\n  \/\/ if there's any serial available, read it:\n  while (Serial.available() &gt; 0) {\n\n    \/\/ look for the next valid integer in the incoming serial stream:\n    int red = Serial.parseInt();\n    \/\/ do it again:\n    int green = Serial.parseInt();\n    \/\/ do it again:\n    int blue = Serial.parseInt();\n\n    \/\/ look for the newline. That's the end of your sentence:\n    if (Serial.read() == '\\n') {\n      \/\/ print the three numbers in one string as hexadecimal:\n      Serial.print(red, HEX);\n      Serial.print(green, HEX);\n      Serial.println(blue, HEX);\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49\u0e08\u0e30\u0e22\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 3 \u0e04\u0e48\u0e32 \u0e42\u0e14\u0e22\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 RGB \u0e08\u0e32\u0e01 Serial \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e23\u0e32\u0e08\u0e30\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1c\u0e48\u0e32\u0e19 Serail monitor \u0e42\u0e14\u0e22\u0e40\u0e25\u0e37\u0e2d\u0e01 Newline (\u0e2a\u0e31\u0e07\u0e40\u0e01\u0e15\u0e38\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 Serial.read() == &#8216;\\n&#8217; \u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e1a\u0e2d\u0e01\u0e27\u0e48\u0e32\u0e08\u0e1a\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 newline) \u0e41\u0e25\u0e30 buadrate 115200<\/p>\n\n\n\n<p>\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32 3 \u0e04\u0e48\u0e32 \u0e42\u0e14\u0e22\u0e41\u0e22\u0e01\u0e04\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22\u0e40\u0e27\u0e49\u0e19\u0e27\u0e23\u0e23\u0e04 \u0e22\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32 10 20 30 \u0e1a\u0e2d\u0e23\u0e4c\u0e14\u0e08\u0e30\u0e15\u0e2d\u0e1a\u0e01\u0e25\u0e31\u0e1a\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02\u0e10\u0e32\u0e1916 \u0e0b\u0e36\u0e48\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e1b\u0e25\u0e07\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e34\u0e14\u0e40\u0e25\u0e02\u0e15\u0e32\u0e21\u0e23\u0e39\u0e1b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"955\" src=\"https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-21-1024x955.png\" alt=\"\" class=\"wp-image-861\" srcset=\"https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-21-1024x955.png 1024w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-21-300x280.png 300w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-21-768x716.png 768w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-21.png 1097w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0e43\u0e19\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e08\u0e30\u0e21\u0e35\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e04\u0e37\u0e2d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>while (Serial.available() &gt; 0)   \n\/\/ \u0e08\u0e30\u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d Serial \u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e21\u0e32<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>int red = Serial.parseInt();    \n\/\/ \u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e14\u0e36\u0e07\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 Serial \u0e41\u0e25\u0e49\u0e27\u0e41\u0e1b\u0e25\u0e07\u0e40\u0e1b\u0e47\u0e19 int \u0e42\u0e14\u0e22\u0e08\u0e30\u0e41\u0e22\u0e01\u0e04\u0e48\u0e32 int \u0e41\u0e15\u0e48\u0e25\u0e30\u0e04\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e43\u0e0a\u0e48\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 \u0e40\u0e0a\u0e48\u0e19 \u0e40\u0e27\u0e49\u0e19\u0e27\u0e23\u0e23\u0e04 comma(,) \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e23\u0e31\u0e1a 3 \u0e04\u0e48\u0e32\u0e04\u0e37\u0e2d red green blue<\/code><\/pre>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"%E0%B8%97%E0%B8%94%E0%B8%A5%E0%B8%AD%E0%B8%87%E0%B8%AA%E0%B9%88%E0%B8%87%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%88%E0%B8%B2%E0%B8%81%E0%B8%9A%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%94_STM_%E0%B9%84%E0%B8%9B%E0%B8%A2%E0%B8%B1%E0%B8%87_ESP\"><\/span>\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01\u0e1a\u0e2d\u0e23\u0e4c\u0e14 STM \u0e44\u0e1b\u0e22\u0e31\u0e07 ESP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 3 \u0e04\u0e48\u0e32 \u0e04\u0e37\u0e2d \u0e2a\u0e35\u0e41\u0e14\u0e07 \u0e2a\u0e35\u0e40\u0e02\u0e35\u0e22\u0e27 \u0e2a\u0e35\u0e1f\u0e49\u0e32(red green blue)\u0e08\u0e32\u0e01\u0e1a\u0e2d\u0e23\u0e4c\u0e14 STM \u0e44\u0e1b\u0e22\u0e31\u0e07 ESP<\/p>\n\n\n\n<ul><li>STM \u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e38\u0e48\u0e21\u0e04\u0e48\u0e32 0-255 \u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14 3 \u0e04\u0e48\u0e32\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 RGB<\/li><li>STM \u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e2d\u0e2d\u0e01\u0e1c\u0e48\u0e32\u0e19 Hardware Serial2 \u0e1e\u0e34\u0e19 RX,TX = PA3,PA2 \u0e43\u0e0a\u0e49 baudrate = 9600<\/li><li>STM \u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32 3 \u0e04\u0e48\u0e32 \u0e42\u0e14\u0e22\u0e41\u0e22\u0e01\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e04\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22\u0e40\u0e27\u0e49\u0e19\u0e27\u0e23\u0e23\u0e04 \u0e41\u0e25\u0e30\u0e08\u0e1a\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22&#8221; \\n&#8221; \u0e2b\u0e23\u0e37\u0e2d\u0e02\u0e36\u0e49\u0e19\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e43\u0e2b\u0e21\u0e48<\/li><li>ESP \u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e1c\u0e48\u0e32\u0e19 Software Serial \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e0a\u0e49\u0e1e\u0e34\u0e19 RX,TX = D4,D3 \u0e43\u0e0a\u0e49 baudrate = 9600<\/li><li>ESP \u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 parseInt() \u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02<\/li><\/ul>\n\n\n\n<p><strong>\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d\u0e2a\u0e32\u0e22<\/strong><\/p>\n\n\n\n<ul><li>PA3   &gt; D3<\/li><li>PA2   &gt; D4<\/li><li>GND &gt; GND<\/li><\/ul>\n\n\n\n<p><strong>\u0e42\u0e04\u0e49\u0e14 STM<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void setup() {\n  Serial.begin(115200);\n  Serial2.begin(9600); \/\/ Serial2 on rx,tx = PA3,PA2\n}\n\nvoid loop() {\n  int red = random(255);\n  int green = random(255);\n  int blue = random(255);\n\n  Serial2.print(red);\n  Serial2.print(\" \");\n  Serial2.print(green);\n  Serial2.print(\" \");\n  Serial2.print(blue);\n  Serial2.print(\"\\n\");\n\n  Serial.print(\"RGB send : \");\n  Serial.print(red);\n  Serial.print(\" \");\n  Serial.print(green);\n  Serial.print(\" \");\n  Serial.print(blue);\n  Serial.print(\"\\n\");\n\n  delay(1000);\n}<\/code><\/pre>\n\n\n\n<p><strong>\u0e42\u0e04\u0e49\u0e14 ESP<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;SoftwareSerial.h&gt;\n\nSoftwareSerial mySerial(D4, D3); \/\/ RX, TX\n\nvoid setup() {\n  Serial.begin(115200);\n  mySerial.begin(9600);\n}\n\nvoid loop() {\n  \/\/ if there's any serial available, read it:\n  while (mySerial.available() &gt; 0) {\n    \/\/ look for the next valid integer in the incoming serial stream:\n    int red = mySerial.parseInt();\n    \/\/ do it again:\n    int green = mySerial.parseInt();\n    \/\/ do it again:\n    int blue = mySerial.parseInt();\n\n    \/\/ look for the newline. That's the end of your sentence:\n    if (mySerial.read() == '\\n') {\n      \/\/ print the three numbers in one string as hexadecimal:\n      Serial.print(\"RGB receive : \");\n      Serial.print(red, DEC);\n      Serial.print(\" \");\n      Serial.print(green, DEC);\n      Serial.print(\" \");\n      Serial.println(blue, DEC);\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c \u0e14\u0e49\u0e32\u0e19\u0e0b\u0e49\u0e32\u0e22\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e2d\u0e23\u0e4c\u0e14 STM\u0e17\u0e35\u0e48\u0e08\u0e30\u0e2a\u0e38\u0e48\u0e21\u0e04\u0e48\u0e32\u0e41\u0e25\u0e49\u0e27\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 ESP<\/p>\n\n\n\n<p>\u0e14\u0e49\u0e32\u0e19\u0e02\u0e27\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 ESP \u0e0b\u0e36\u0e48\u0e07\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 STM \u0e41\u0e25\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e48\u0e32\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e01<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"548\" src=\"https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-23-1024x548.png\" alt=\"\" class=\"wp-image-873\" srcset=\"https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-23-1024x548.png 1024w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-23-300x161.png 300w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-23-768x411.png 768w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-23-1536x822.png 1536w, https:\/\/iotkiddie.com\/blog\/wp-content\/uploads\/2022\/11\/image-23.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1a\u0e2d\u0e23\u0e4c\u0e142\u0e1a\u0e2d\u0e23\u0e4c\u0e14 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/posts\/857"}],"collection":[{"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/comments?post=857"}],"version-history":[{"count":8,"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/posts\/857\/revisions"}],"predecessor-version":[{"id":874,"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/posts\/857\/revisions\/874"}],"wp:attachment":[{"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/media?parent=857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/categories?post=857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iotkiddie.com\/blog\/wp-json\/wp\/v2\/tags?post=857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}