{"id":92567,"date":"2021-01-24T18:57:42","date_gmt":"2021-01-24T12:57:42","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=92567"},"modified":"2022-01-08T15:07:51","modified_gmt":"2022-01-08T09:07:51","slug":"esp32-bluetooth-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=92567","title":{"rendered":"ESP32 + Bluetooth (Arduino)"},"content":{"rendered":"<p>\u0412 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 ESP32 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0434\u0432\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 Bluetooth, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 Bluetooth \u0438 Bluetooth Low Energy (BLE). \u041c\u043e\u0434\u0443\u043b\u044c BLE \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 Bluetooth. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u043b\u0430\u0442\u043e\u0439 ESP32 \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u043c (Android) \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f Bluetooth.<\/p>\n<pre><span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><b><span style=\"color: #d35400;\">BluetoothSerial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span> <span style=\"color: #434f54;\">\/\/ \u00a0\/\/ \u0412\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 Arduino IDE <\/span>\r\n \u00a0<b><span style=\"color: #d35400;\">BluetoothSerial<\/span><\/b> <span style=\"color: #000000;\">BL<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">val<\/span><span style=\"color: #000000;\">;<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\r\n \u00a0<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">begin<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">9600<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \r\n \u00a0<span style=\"color: #000000;\">BL<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">begin<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\"ESP32\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ \u0418\u043c\u044f \u0412\u0430\u0448\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Bluetooth<\/span>\r\n \u00a0<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\"Bluetooth OK\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0<span style=\"color: #d35400;\">pinMode<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">2<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #00979c;\">OUTPUT<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ LED<\/span>\r\n<span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0<span style=\"color: #5e6d03;\">if<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">BL<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">available<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #000000;\">val<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">BL<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">read<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #434f54;\">-<\/span><span style=\"color: #00979c;\">'0'<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0\u00a0<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">val<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #5e6d03;\">if<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">val<\/span><span style=\"color: #434f54;\">==<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #d35400;\">digitalWrite<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">2<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #00979c;\">HIGH<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">BL<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\"LED turned ON\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">}<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #5e6d03;\">if<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">val<\/span><span style=\"color: #434f54;\">==<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #d35400;\">digitalWrite<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">2<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #00979c;\">LOW<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">BL<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\"LED turned OFF\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">}<\/span> \u00a0\u00a0\u00a0\u00a0\r\n \u00a0<span style=\"color: #000000;\">}<\/span>\r\n \u00a0<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">20<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #000000;\">}<\/span>\r\n\r\n<\/pre>\n<p>\u0412\u044b\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0441\u043a\u0435\u0442\u0447 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u043e \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u043e\u043c, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430 \u043a ESP32 \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Bluetooth, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &#8212; <strong>Serial Bluetooth Terminal<\/strong><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-01-24-184141.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-92568\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-01-24-184141.png\" alt=\"\" width=\"696\" height=\"222\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-01-24-184141.png 696w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-01-24-184141-200x64.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-01-24-184141-500x159.png 500w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/a><\/p>\n<p>\u0421\u043a\u0435\u0442\u0447 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c &#8212; \u0435\u0441\u043b\u0438 \u0438\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c 1, \u0442\u043e \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 SEP32 \u0437\u0430\u0433\u043e\u0440\u0438\u0442\u0441\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043a GPO2, \u0430 \u0435\u0441\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c 0, \u0442\u043e \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043f\u043e\u0433\u0430\u0441\u043d\u0435\u0442. \u0422\u0430\u043a \u0436\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u0435\u043a\u0441\u0442 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0441\u043a\u0435\u0442\u0447\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0441\u044f \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439\u00a0 &#8212; <a href=\"http:\/\/rcl-radio.ru\/?p=92558\">ESP32 DevKit v1 Wi-Fi Bluetooth ESP32-WROOM-32 (Arduino IDE)<\/a>.<\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043a\u0435\u0442\u0447\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0435 \u0432 \u043d\u0430\u0441\u0442\u043e\u0439\u043a\u0430\u0445 <strong>Bluetooth\u00a0<\/strong>\u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0443\u0441\u0442-\u0432\u043e <strong>ESP32<\/strong>.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/Screenshot_2021-01-24-18-54-19-672_com.android.settings-1.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-92570 size-medium\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/Screenshot_2021-01-24-18-54-19-672_com.android.settings-1-281x500.png\" alt=\"\" width=\"281\" height=\"500\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/Screenshot_2021-01-24-18-54-19-672_com.android.settings-1-281x500.png 281w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/Screenshot_2021-01-24-18-54-19-672_com.android.settings-1-200x356.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/Screenshot_2021-01-24-18-54-19-672_com.android.settings-1-768x1365.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/Screenshot_2021-01-24-18-54-19-672_com.android.settings-1-576x1024.png 576w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/Screenshot_2021-01-24-18-54-19-672_com.android.settings-1.png 1080w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <strong>Serial Bluetooth Terminal\u00a0<\/strong>\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a <strong>ESP32.<\/strong><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-04-04.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-92571 size-medium\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-04-04-281x500.png\" alt=\"\" width=\"281\" height=\"500\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-04-04-281x500.png 281w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-04-04-200x356.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-04-04-768x1365.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-04-04-576x1024.png 576w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-04-04.png 1080w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/td>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-01-25.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-92573 size-medium\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-01-25-281x500.png\" alt=\"\" width=\"281\" height=\"500\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-01-25-281x500.png 281w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-01-25-200x356.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-01-25-768x1365.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-01-25-576x1024.png 576w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-01-25.png 1080w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u043f\u043b\u0430\u0442\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c 0 \u0438\u043b\u0438 1, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 ESP32 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u043e\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u0433\u0430\u0441\u043d\u0443\u0442\u044c.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-02-10.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-92572 size-medium\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-02-10-281x500.png\" alt=\"\" width=\"281\" height=\"500\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-02-10-281x500.png 281w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-02-10-200x356.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-02-10-768x1365.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-02-10-576x1024.png 576w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-02-10.png 1080w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/td>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-03-00.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-92574 size-medium\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-03-00-281x500.png\" alt=\"\" width=\"281\" height=\"500\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-03-00-281x500.png 281w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-03-00-200x356.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-03-00-768x1365.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-03-00-576x1024.png 576w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/01\/2021-01-24-17-03-00.png 1080w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 ESP32 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0434\u0432\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 Bluetooth, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 Bluetooth \u0438 Bluetooth Low Energy (BLE). \u041c\u043e\u0434\u0443\u043b\u044c BLE \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 Bluetooth. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u043b\u0430\u0442\u043e\u0439 ESP32 \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u043c (Android) \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f Bluetooth. #include &lt;BluetoothSerial.h&gt; \/\/ \u00a0\/\/ \u0412\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 Arduino IDE \u00a0BluetoothSerial [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":92574,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239],"tags":[],"class_list":["post-92567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"views":3959,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/92567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92567"}],"version-history":[{"count":2,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/92567\/revisions"}],"predecessor-version":[{"id":111175,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/92567\/revisions\/111175"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/92574"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92567"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}