{"id":37407,"date":"2019-10-31T22:17:29","date_gmt":"2019-10-31T19:17:29","guid":{"rendered":"https:\/\/prohoster.info\/blog\/esp8266-upravlenie-cherez-internet-po-protokolu-mqtt\/"},"modified":"2019-10-31T22:17:29","modified_gmt":"2019-10-31T19:17:29","slug":"esp8266-upravlenie-cherez-internet-po-protokolu-mqtt","status":"publish","type":"post","link":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/esp8266-upravlenie-cherez-internet-po-protokolu-mqtt","title":{"rendered":"Esp8266 juhtimine interneti kaudu MQTT protokolli abil.","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Esp8266 juhtimine interneti kaudu MQTT protokolli abil.\" src=\"\/wp-content\/uploads\/2019\/08\/f2625ae58efb259417096af88f094e54.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n Tere k\u00f5igile! Selles artiklis r\u00e4\u00e4gitakse detailselt ja n\u00e4idatakse, kuidas vaid 20 minuti jooksul seadistada esp8266 mooduli kaugjuhtimist Android rakenduse abil MQTT protokolli kaudu.<\/p>\n<p> Kaugjuhtimise ja monitooringu idee on alati intrigeerinud elektroonika ja programmeerimise entusiastide m\u00f5tteid. V\u00f5imalus saada igal ajal vajalikku teavet v\u00f5i saata andmeid, s\u00f5ltumata asukohast, avab laia haarde. Oma varasemates artiklites ( <noindex><a rel=\"nofollow\" href=\"https:\/\/geektimes.ru\/post\/255546\/\">Artikkel 1<\/a><\/noindex> ja <noindex><a rel=\"nofollow\" href=\"https:\/\/geektimes.ru\/post\/258504\/\">Artikkel 2<\/a><\/noindex>) olen p\u00fc\u00fcdnud k\u00e4sitleda mitmeid kergesti k\u00e4tte saadavaid ja suhteliselt lihtsaid viise mikrokontrollerite kaugjuhtimiseks interneti kaudu. Kuid aeg ja kogu maailm ei seisa paigal \u2013 progress j\u00e4tkab oma j\u00e4rjepidevat edasiviimist. Selle l\u00fchikese aja jooksul on esp8266 moodul saavutanud laialdase populaarsuse, muutes selle t\u00e4nu madalale hinnale ja sisseehitatud wi-fi'le \u00fcheks peamiseks osaks \"Nutikas kodu\" s\u00fcsteemidest.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nPraeguseks on MQTT \u00fcks k\u00f5ige arenenumaid ja populaarsemaid andmeedastuse protokolle erinevate seadmete vahel \"Nutika kodu\" s\u00fcsteemides. Sellel on mitmeid eeliseid v\u00f5rreldes teiste protokollidega:<br \/>\n \u2014 madal andmeedastuse tarbimine;<br \/>\n \u2014 klientide ja serveri vahel on \u00fchendus alati avatud;<br \/>\n \u2014 ei koorma internetikanalit;<br \/>\n \u2014 andmete edastamise viivituste puudumine;<br \/>\n \u2014 mugav teema tellimiss\u00fcsteem;<br \/>\n Kogu see v\u00f5imaldab reaalaja monitooringut ja juhtimist. Kuid MQTT vajab enda serverit, mis toimib vahendajana v\u00f5rgus olevate klientide vahel. Siin on kaks v\u00f5imalust: kas luua oma server v\u00f5i kasutada kolmanda osapoole teenuseid.<\/p>\n<p>K\u00e4esolev juhtimiss\u00fcsteem koosneb kahest p\u00f5hiosast: MQTT serverist (mis on tavaliselt vaid \u00fcks) ja klientidest, keda v\u00f5ib olla \u00fcsna palju. Meie juhul on klientideks Android rakendus ja esp8266 moodul.<\/p>\n<p>S\u00fcsteemi t\u00f6\u00f6korraldus on j\u00e4rgmine. Kliendid \u00fchenduvad serveriga ja kohe p\u00e4rast \u00fchenduse loomist tellib iga klient huvipakkuvad teemad. K\u00f5ik suhtlemine klientide vahel toimub serveri kaudu, mis suunab andmed teistele klientidele nende tellimuste p\u00f5hjal.<\/p>\n<p><b>MQTT server. <\/b><\/p>\n<p>Meie puhul kasutame v\u00e4ga mugavat teenust <noindex><a rel=\"nofollow\" href=\"https:\/\/www.cloudmqtt.com\/\">www.cloudmqtt.com<\/a><\/noindex> , millel on tasuta pakett (Cute Cat), mis katab t\u00e4ielikult v\u00e4ikese iseseisva \"nutika kodu\" s\u00fcsteemi rakendamise vajadused.<br \/>\n<img decoding=\"async\" alt=\"Esp8266 juhtimine interneti kaudu MQTT protokolli abil.\" src=\"\/wp-content\/uploads\/2019\/08\/4dc16e68af75fb268a7a77b04b76d0d1.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n Registreerime end saidil ja saame vajalikud andmed serverisse sisselogimiseks. Klientide seadistamisel tuleb kasutada tavalist porti (ilma SSL-i ja TLS-ita).<br \/>\n<img decoding=\"async\" alt=\"Esp8266 juhtimine interneti kaudu MQTT protokolli abil.\" src=\"\/wp-content\/uploads\/2019\/08\/48655ceaaffd45dd414300dd03b7fb09.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n<b>Rakendus Androidile.<\/b><\/p>\n<p>Meie rakendus toimib mikrokontrolleri kaugjuhtimispuldina ning see v\u00f5tab vastu ja kuvab kogu teabe, mis saadakse esp8266-lt.<\/p>\n<p>Rakendus nimega <noindex><a rel=\"nofollow\" href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.thn.iotmqttdashboard&amp;hl=ru\">IoT MQTT Dashboard<\/a><\/noindex> on valmis mqtt klient, kus on m\u00f5ned v\u00e4ga mugavad vidinad. Rakenduse kasutamise kohta saate vaadata videot.<\/p>\n<p><b>Esp8266.<\/b><\/p>\n<p>Moodul vilgub Arduino programmeerimiskeskkonnas, kuid tahan m\u00e4rkida, et moodulil on Arduino viimastes versioonides vilkumise probleeme, seega soovitan kasutada versiooni 1.6.4.<br \/>\nN\u00e4iteks on esp8266-ga \u00fchendatud LED (5. pin) ja temperatuuriandur ds18b20 (2. pin).<br \/>\nKuna LED-i juhtimiseks tuleb saada andmeid, peab esp p\u00e4rast \u00fchendamist tellima vastava teemade 'test\/led', vastasel juhul l\u00e4hevad k\u00f5ik saadetud andmed m\u00f6\u00f6da meie mikrokontrollerit.<br \/>\nTemperatuuriandmete edastamiseks tellimist ei ole vaja, kuid temperatuuri v\u00e4\u00e4rtuste edastamisel tuleb m\u00e4rkida teema, kuhu need andmed l\u00e4hevad.<\/p>\n<p>Allpool on esitatud skeem koos \u00fcksikasjalike kommentaaridega.<\/p>\n<p><b class=\"spoiler_title\">Skeem Esp8266_mqtt.ino<\/b><code>\/\/ \u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043f\u043e\u0434\u043b\u043a\u044e\u0447\u0435\u043d \u043a 5 \u043f\u0438\u043d\u0443<br \/>\n\/\/ \u0414\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b ds18b20 \u043a 2 \u043f\u0438\u043d\u0443<\/p>\n<p>#include &lt;ESP8266WiFi.h&gt;<br \/>\n#include &lt;PubSubClient.h&gt;<br \/>\n#include &lt;OneWire.h&gt;<br \/>\n#include &lt;DallasTemperature.h&gt;<\/p>\n<p>#define ONE_WIRE_BUS 2<br \/>\nOneWire oneWire(ONE_WIRE_BUS);<br \/>\nDallasTemperature sensorid (&amp;oneWire);<\/p>\n<p>const char *ssid = \"AIRPORT\"; \/\/ Wifi p\u00e4\u00e4senohtude nimi<br \/>\nconst char *pass = \"PASSWORD\"; \/\/ P\u00e4\u00e4senohtude parool<\/p>\n<p>const char *mqtt_server = \"server\"; \/\/ MQTT serveri nimi<br \/>\nconst int mqtt_port = 11140; \/\/ \u00dchendusport MQTT serveriga<br \/>\nconst char *mqtt_user = \"Login\"; \/\/ Serveri logi<br \/>\nconst char *mqtt_pass = \"Pass\"; \/\/ Serveri parool<\/p>\n<p>#define BUFFER_SIZE 100<\/p>\n<p>bool LedState = false;<br \/>\nint tm=300;<br \/>\nfloat temp=0;<\/p>\n<p>\/\/ \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<p>void callback(const MQTT::Publish&amp; pub)<br \/>\n{<br \/>\n Serial.print(pub.topic()); \/\/ Kuvame seerianeb adresse teemade nime<br \/>\n Serial.print(\" =&gt; \");<br \/>\n Serial.print(pub.payload_string()); \/\/ Kuvame seerianeb saadud andmete v\u00e4\u00e4rtuse<\/p>\n<p> String payload = pub.payload_string();<\/p>\n<p> if(String(pub.topic()) == \"test\/led\") \/\/ kontrollime, kas andmed tulid \u00f5igest teemast <br \/>\n {<br \/>\n int stled = payload.toInt(); \/\/ Muutame saadud andmed t\u00e4isarvuks<br \/>\n digitalWrite(5,stled); \/\/ L\u00fclitame LED-i sisse v\u00f5i v\u00e4lja vastavalt saadud andmete v\u00e4\u00e4rtusele<br \/>\n }<br \/>\n}<\/p>\n<p>WiFiClient wclient; <br \/>\nPubSubClient client(wclient, mqtt_server, mqtt_port);<\/p>\n<p>void setup() {<\/p>\n<p> sensors.begin();<br \/>\n Serial.begin(115200);<br \/>\n delay(10);<br \/>\n Serial.println();<br \/>\n Serial.println();<br \/>\n pinMode(5, OUTPUT);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n \/\/ \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a wi-fi<br \/>\n if (WiFi.status() != WL_CONNECTED) {<br \/>\n Serial.print(\"Connecting to \");<br \/>\n Serial.print(ssid);<br \/>\n Serial.println(\"...\");<br \/>\n WiFi.begin(ssid, pass);<\/p>\n<p>if (WiFi.waitForConnectResult() != WL_CONNECTED)<br \/>\n return;<br \/>\n Serial.println(\"WiFi \u00fchendatud\");<br \/>\n }<\/p>\n<p>\/\/ \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a MQTT \u0441\u0435\u0440\u0432\u0435\u0440\u0443<br \/>\n if (WiFi.status() == WL_CONNECTED) {<br \/>\n if (!client.connected()) {<br \/>\n Serial.println(\"\u00dchendamine MQTT serveriga\");<br \/>\n if (client.connect(MQTT::Connect(\"arduinoClient2\")<br \/>\n .set_auth(mqtt_user, mqtt_pass))) {<br \/>\n Serial.println(\"\u00dchendatud MQTT serveriga\");<br \/>\n client.set_callback(callback);<br \/>\n client.subscribe(\"test\/led\"); \/\/ tellime teemal andmed LED-le<br \/>\n } else {<br \/>\n Serial.println(\"MQTT serveriga ei \u00f5nnestunud \u00fchendust luua\"); <br \/>\n }<br \/>\n }<\/p>\n<p>if (client.connected()){<br \/>\n client.loop();<br \/>\n TempSend();<br \/>\n }<\/p>\n<p>}<br \/>\n} \\\/\\\/ end of main loop<\/p>\n<p>\/\/ \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441 \u0442\u0435\u0440\u043c\u043e\u0434\u0430\u0442\u0447\u0438\u043a\u0430<br \/>\nvoid TempSend(){<br \/>\n if (tm==0)<br \/>\n {<br \/>\n sensors.requestTemperatures(); \\\/\\\/ get temperature value from the sensor<br \/>\n float temp = sensors.getTempCByIndex(0);<br \/>\n client.publish(\"test\/temp\",String(temp)); \/\/ saadame temperatuurim\u00f5\u00f5tja v\u00e4\u00e4rtuse teemale<br \/>\n Serial.println(temp);<br \/>\n tm = 300; \\\/\\\/ pause between sending temperature values is about 3 seconds<br \/>\n }<br \/>\n tm--; <br \/>\n delay(10); <br \/>\n}<br \/>\n<\/code><\/p>\n<p>\nAs a result, we get a convenient tool for remote control and data monitoring, which is quite easy to master and will be accessible even for beginners.<\/p>\n<p><b>A video demonstration of the control system<\/b><br \/>\n<center><div class=\"youtube-placeholder\" data-id=\"q36C4rYAKVA\" onclick=\"loadVideo(this)\">\r\n        <img decoding=\"async\" src=\"https:\/\/img.youtube.com\/vi\/q36C4rYAKVA\/hqdefault.jpg\" alt=\"M\u00e4ngi videot\" loading=\"lazy\" width=\"480\" height=\"360\" style=\"width:100%;height:auto;\">\r\n        <div class=\"play-button\"><\/div>\r\n    <\/div><\/center><\/p>\n<p><b>Detailed video instructions for setting up the system<\/b><br \/>\n<center><div class=\"youtube-placeholder\" data-id=\"PTPZv15Td58\" onclick=\"loadVideo(this)\">\r\n        <img decoding=\"async\" src=\"https:\/\/img.youtube.com\/vi\/PTPZv15Td58\/hqdefault.jpg\" alt=\"M\u00e4ngi videot\" loading=\"lazy\" width=\"480\" height=\"360\" style=\"width:100%;height:auto;\">\r\n        <div class=\"play-button\"><\/div>\r\n    <\/div><\/center><\/p>\n<p><b>One of the options for controlling ESP8266 via MQTT protocol<\/b><br \/>\n<center><div class=\"youtube-placeholder\" data-id=\"0GcrRmu15HM\" onclick=\"loadVideo(this)\">\r\n        <img decoding=\"async\" src=\"https:\/\/img.youtube.com\/vi\/0GcrRmu15HM\/hqdefault.jpg\" alt=\"M\u00e4ngi videot\" loading=\"lazy\" width=\"480\" height=\"360\" style=\"width:100%;height:auto;\">\r\n        <div class=\"play-button\"><\/div>\r\n    <\/div><\/center><\/p>\n<p><b>Controlling an LED strip over the internet<\/b><br \/>\n<center><div class=\"youtube-placeholder\" data-id=\"ESSKNfxiSRY\" onclick=\"loadVideo(this)\">\r\n        <img decoding=\"async\" src=\"https:\/\/img.youtube.com\/vi\/ESSKNfxiSRY\/hqdefault.jpg\" alt=\"M\u00e4ngi videot\" loading=\"lazy\" width=\"480\" height=\"360\" style=\"width:100%;height:auto;\">\r\n        <div class=\"play-button\"><\/div>\r\n    <\/div><\/center><\/p>\n<p>If you have any questions about this material, I recommend watching the second part of the video, where the material is presented more clearly.<\/p>\n<p>The archive contains the sketch and all necessary libraries for flashing the microcontroller with the example sketch.<br \/>\nPlease note that the library ESP8266WiFi.h is not included in this archive; it is installed through the Boards manager in the Arduino environment.<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/cloud.mail.ru\/public\/44nnTMk9dBFu\/Files.zip\"><b>ARCHIVE<\/b><\/a><\/noindex><\/p>\n<p>MQTT server \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/www.cloudmqtt.com\/\">www.cloudmqtt.com<\/a><\/noindex><\/p>\n<p>Link to the IoT MQTT Dashboard application \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.thn.iotmqttdashboard&#038;hl=ru\">play.google.com\/store\/apps\/details?id=com.thn.iotmqttdashboard&amp;hl=et<\/a><\/noindex><\/p>\n<p>Thank you all for your attention.<br \/>\n<br \/>Allikas: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/393277\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0437\u0430 20 \u043c\u0438\u043d\u0443\u0442 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u043c esp8266 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 Android \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 MQTT. \u0418\u0434\u0435\u044f \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u043e\u0440\u0430\u0436\u0438\u043b\u0430 \u0443\u043c\u044b \u0443\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0435 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043b\u044e\u0434\u0435\u0439. \u0412\u0435\u0434\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":28068,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-37407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/esp8266-upravlenie-cherez-internet-po-protokolu-mqtt\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"et_EE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Esp8266 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 MQTT | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/esp8266-upravlenie-cherez-internet-po-protokolu-mqtt\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:17:29+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:17:29+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Esp8266 control over the internet via MQTT protocol | ProHoster","description":"Tere k\u00f5igile!","canonical_url":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/esp8266-upravlenie-cherez-internet-po-protokolu-mqtt","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"et_EE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Esp8266 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 MQTT | ProHoster","og:description":"\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!","og:url":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/esp8266-upravlenie-cherez-internet-po-protokolu-mqtt","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:17:29+00:00","article:modified_time":"2019-10-31T19:17:29+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"37407","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-23 17:42:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:27:26","updated":"2026-01-23 17:42:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/37407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/comments?post=37407"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/37407\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/media\/28068"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/media?parent=37407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/categories?post=37407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/tags?post=37407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}