{"id":629,"date":"2023-08-16T09:06:00","date_gmt":"2023-08-16T09:06:00","guid":{"rendered":"https:\/\/joseamaita.com\/en\/?p=629"},"modified":"2023-08-16T14:27:32","modified_gmt":"2023-08-16T14:27:32","slug":"mqtt-on-a-raspberry-pi","status":"publish","type":"post","link":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/","title":{"rendered":"MQTT on a Raspberry Pi"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Knowing how to connect both industrial and cloud environments using MQTT on a Raspberry Pi is a very valuable skill. Also, if you&#8217;re capable of taking advantage of devices with resource constraints or limited network bandwidth, your projects will be profitable.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/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:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#What_is_MQTT\" >What is MQTT?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#What_is_a_Raspberry_Pi\" >What is a Raspberry Pi?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#What_is_Eclipse_Mosquitto\" >What is Eclipse Mosquitto?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#Install_Mosquitto_MQTT_Broker_on_a_Raspberry_Pi\" >Install Mosquitto MQTT Broker on a Raspberry Pi<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#Test_the_service\" >Test the service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#Testing_MQTT_transfers_with_Mosquitto_client_tools\" >Testing MQTT transfers with Mosquitto client tools<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#Subscribing_MQTT_from_a_Raspberry_Pi_1\" >Subscribing MQTT from a Raspberry Pi #1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#Publishing_MQTT_from_a_Raspberry_Pi_1\" >Publishing MQTT from a Raspberry Pi #1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#Asking_for_help\" >Asking for help<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#Publishing_MQTT_from_a_Raspberry_Pi_2\" >Publishing MQTT from a Raspberry Pi #2<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_MQTT\"><\/span>What is MQTT?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MQTT<\/strong> or <strong>MQ<\/strong> <strong>T<\/strong>elemetry <strong>T<\/strong>ransport is a lightweight open messaging protocol for restricted low-bandwidth networks and extremely high-latency IoT devices. The protocol employs a publish\/subscribe communication pattern, ideal for machine-to-machine (M2M) communication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since <strong>MQTT<\/strong> started as a proprietary protocol used to communicate with Supervisory Control and Data Acquisition (SCADA) systems in the oil and gas industry, it has become popular in the smart device arena now and it is the leading open source protocol for connecting Internet of Things (IoT) and Industrial IoT (IIoT) devices today.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As written previously, <strong>MQTT<\/strong> works on the publisher\/subscriber principle. The process operates via a central broker. This means that the sender and receiver have no direct connection. The publishers send the messages through to the broker that serves as &#8220;the middle man&#8221;. The subscribers connect to the <strong>MQTT<\/strong> broker and read messages sent under a specific topic.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_a_Raspberry_Pi\"><\/span>What is a Raspberry Pi?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"340\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_002.png\" alt=\"mqtt raspberry pi 1\" class=\"wp-image-638\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_002.png 571w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_002-300x179.png 300w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The Raspberry Pi is a low cost, credit-card sized computer. It&#8217;s possible to connect a computer monitor or TV to its board, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. It\u2019s capable of doing everything you\u2019d expect a desktop computer to do, from browsing the internet and playing high-definition video, to making spreadsheets, word-processing, and playing games. However, the Raspberry Pi can interact with the outside world in many ways, working great as data source for industrial applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Eclipse_Mosquitto\"><\/span>What is Eclipse Mosquitto?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Eclipse Mosquitto is an open source (EPL\/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Mosquitto project also provides a C library for implementing MQTT clients, and the very popular <em>mosquitto_pub<\/em> and <em>mosquitto_sub<\/em> command line MQTT clients.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mosquitto is part of the <a href=\"https:\/\/eclipse.org\/\">Eclipse Foundation<\/a>, is an <a href=\"https:\/\/iot.eclipse.org\/\">iot.eclipse.org<\/a> project and is sponsored by <a href=\"https:\/\/cedalo.com\/\">cedalo.com<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"361\" height=\"378\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_003.png\" alt=\"mqtt raspberry pi 2\" class=\"wp-image-641\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_003.png 361w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_003-287x300.png 287w\" sizes=\"auto, (max-width: 361px) 100vw, 361px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install_Mosquitto_MQTT_Broker_on_a_Raspberry_Pi\"><\/span>Install Mosquitto MQTT Broker on a Raspberry Pi<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To get the Raspberry Pi to support the <strong>MQTT<\/strong> protocol, we will be using Mosquitto. Also, we will be having multiple sensors to send their data to the Raspberry Pi&#8217;s <strong>MQTT<\/strong> broker, where client applications can then subscribe to receive that data.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, make sure our Raspberry Pi uses a static IP address (for instance, 192.168.1.188).<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Secondly, update the operating system by running these commands:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt update\n$ sudo apt upgrade<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Once the system finishes updating, install Mosquitto software (server and client) by running these commands:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt install mosquitto mosquitto-clients<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The client software will allow us to interact and test that our <strong>MQTT<\/strong> broker is running correctly on our Raspberry Pi. During the installation process, the package manager will automatically configure the Mosquitto server to start on boot.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>At this point, you will now have the Mosquitto MQTT broker up and running on your device. Verify installation and execution by using the command below:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl status mosquitto<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command will return the status of the &#8220;<strong>mosquitto<\/strong>&#8221; service. You should see the text &#8220;<strong>active (running)<\/strong>&#8221; if the service has started up properly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"335\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_007.png\" alt=\"mqtt raspberry pi 3\" class=\"wp-image-663\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_007.png 802w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_007-300x125.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_007-768x321.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Test_the_service\"><\/span>Test the service<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following step will be to test that the service works as it should be and is now acting as an MQTT broker on our Raspberry Pi. To do this, we&#8217;ll be using the Mosquitto client that we installed earlier.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Initially, make sure that you have access locally or over SSH to our Raspberry Pi.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Also, check that you&#8217;re able to use a remote workstation in the same subnet (for instance, Debian) to start up a subscriber, where you also have the Mosquito MQTT broker installed.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to the remote Debian node and start up a subscriber by running:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_sub -h 192.168.1.188 -t \"mqtt\/test_topic\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"167\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_004.png\" alt=\"mqtt raspberry pi 4\" class=\"wp-image-653\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_004.png 799w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_004-300x63.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_004-768x161.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Then, go to our Raspberry Pi and publish a message by running:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_pub -h 192.168.1.188 -t \"mqtt\/test_topic\" -m \"Hello, Jose Alberto!\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"174\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_005.png\" alt=\"mqtt raspberry pi 5\" class=\"wp-image-655\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_005.png 804w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_005-300x65.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_005-768x166.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Go back to the remote node and see the message received and displayed:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"158\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_006.png\" alt=\"mqtt raspberry pi 6\" class=\"wp-image-656\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_006.png 799w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_006-300x59.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_006-768x152.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Testing_MQTT_transfers_with_Mosquitto_client_tools\"><\/span>Testing MQTT transfers with Mosquitto client tools<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8220;<strong>mosquitto_pub<\/strong>&#8221; and &#8220;<strong>mosquitto_sub<\/strong>&#8221; client utilities comes with the Mosquitto package. These are excellent tools for conducting quick tests and troubleshooting. Let&#8217;s see some examples on how to use them for publishing and subscribing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Subscribing_MQTT_from_a_Raspberry_Pi_1\"><\/span>Subscribing MQTT from a Raspberry Pi #1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to the remote Debian node and start up a subscriber by running:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_sub -h 192.168.1.188 -t \"mqtt\/test_topic\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ll be using this basic subscription for the first examples. This is ideal to quickly monitor a topic. When you start this client, it runs indefinitely until stopped using &#8220;<strong>CTRL<\/strong> + <strong>C<\/strong>&#8220;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"167\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_004.png\" alt=\"mqtt raspberry pi 7\" class=\"wp-image-653\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_004.png 799w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_004-300x63.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_004-768x161.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Publishing_MQTT_from_a_Raspberry_Pi_1\"><\/span>Publishing MQTT from a Raspberry Pi #1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>These are two publish examples. First, a simple one:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_pub -h 192.168.1.188 -t \"mqtt\/test_topic\" -m \"Hello, Jose Alberto!\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"174\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_005.png\" alt=\"mqtt raspberry pi 8\" class=\"wp-image-655\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_005.png 804w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_005-300x65.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_005-768x166.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, the message is published and the client exits without displaying any messages.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Second, a publish with a <strong>debug<\/strong> flag (<strong>-d<\/strong>) set.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_pub -h 192.168.1.188 -t \"mqtt\/test_topic\" -m \"Hello, Jose Alberto!\" -d<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"899\" height=\"196\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_008.png\" alt=\"mqtt raspberry pi 9\" class=\"wp-image-688\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_008.png 899w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_008-300x65.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_008-768x167.png 768w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you enable the debugging using the <strong>-d<\/strong> flag, then you can see the CONNECT, PUBLISH and DISCONNECT messages. Also, notice the <strong>-h<\/strong> flag sets the host name or IP address.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Asking_for_help\"><\/span>Asking for help<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>To get help, use the <strong>&#8211;help<\/strong> flag.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_pub --help<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"871\" height=\"1024\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_009-871x1024.png\" alt=\"mqtt raspberry pi 10\" class=\"wp-image-689\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_009-871x1024.png 871w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_009-255x300.png 255w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_009-768x903.png 768w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_009.png 898w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Publishing_MQTT_from_a_Raspberry_Pi_2\"><\/span>Publishing MQTT from a Raspberry Pi #2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>These are three publish examples with the popular JSON format. First, a simple one that escapes the quotes so that they are included:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_pub -h 192.168.1.188 -t \"mqtt\/test_topic\" -m {\\\"current\\\":110.5} -d<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"208\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_010.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_010.png 891w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_010-300x70.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_010-768x179.png 768w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"165\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_011.png\" alt=\"\" class=\"wp-image-692\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_011.png 799w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_011-300x62.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_011-768x159.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Second, if you are sending multiple values, then you need to put the entire string in quotes:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_pub -h 192.168.1.188 -t \"mqtt\/test_topic\" -m \"{\\\"current\\\":110.5, \\\"frequency\\\":42.4}\" -d<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"214\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_012.png\" alt=\"\" class=\"wp-image-694\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_012.png 986w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_012-300x65.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_012-768x167.png 768w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"194\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_013.png\" alt=\"\" class=\"wp-image-695\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_013.png 799w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_013-300x73.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_013-768x186.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Third, you can also use shell variables. If you need a shell variable called &#8220;<strong>speed<\/strong>&#8220;, then:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_014.png\" alt=\"\" class=\"wp-image-696\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mosquitto_pub -h 192.168.1.188 -t \"mqtt\/test_topic\" -m \"{\\\"current\\\":110.5, \\\"speed\\\":$speed}\" -d<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"227\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_015.png\" alt=\"\" class=\"wp-image-697\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_015.png 986w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_015-300x69.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_015-768x177.png 768w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"199\" src=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_016.png\" alt=\"\" class=\"wp-image-698\" srcset=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_016.png 799w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_016-300x75.png 300w, https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_016-768x191.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For other articles like this one in English, click <a href=\"https:\/\/joseamaita.com\/en\/blog\/\">here<\/a>. To see them in Spanish, click <a href=\"https:\/\/joseamaita.com\/blog\/\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Knowing how to connect both industrial and cloud environments using MQTT on a Raspberry Pi is a very valuable skill. Also, if you&#8217;re capable of taking advantage of devices with resource constraints or limited network bandwidth, your projects will be profitable. What is MQTT? MQTT or MQ Telemetry Transport is a lightweight open messaging protocol&hellip;&nbsp;<a href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">MQTT on a Raspberry Pi<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":635,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[17,5,3,29,30],"tags":[24,25,31,32],"class_list":["post-629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-transfer","category-english","category-industrial-automation","category-mqtt","category-raspberry-pi","tag-data-transfer","tag-industrial-automation","tag-mqtt","tag-raspberry-pi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MQTT on a Raspberry Pi - joseamaita.com<\/title>\n<meta name=\"description\" content=\"Knowing how to connect both industrial and cloud environments using MQTT on a Raspberry Pi is a very valuable skill. Learn all about it here!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MQTT on a Raspberry Pi - joseamaita.com\" \/>\n<meta property=\"og:description\" content=\"Knowing how to connect both industrial and cloud environments using MQTT on a Raspberry Pi is a very valuable skill. Learn all about it here!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/\" \/>\n<meta property=\"og:site_name\" content=\"joseamaita.com\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-16T09:06:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-16T14:27:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_001.png\" \/>\n\t<meta property=\"og:image:width\" content=\"199\" \/>\n\t<meta property=\"og:image:height\" content=\"159\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jos\u00e9 Alberto Maita\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jos\u00e9 Alberto Maita\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/\"},\"author\":{\"name\":\"Jos\u00e9 Alberto Maita\",\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/#\\\/schema\\\/person\\\/b53d49d3ddf8f348fed0d484b541b1a4\"},\"headline\":\"MQTT on a Raspberry Pi\",\"datePublished\":\"2023-08-16T09:06:00+00:00\",\"dateModified\":\"2023-08-16T14:27:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/\"},\"wordCount\":953,\"image\":{\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/06\\\/img_p_08_001.png\",\"keywords\":[\"Data Transfer\",\"Industrial Automation\",\"MQTT\",\"Raspberry Pi\"],\"articleSection\":[\"Data Transfer\",\"English\",\"Industrial Automation\",\"MQTT\",\"Raspberry Pi\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/\",\"url\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/\",\"name\":\"MQTT on a Raspberry Pi - joseamaita.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/06\\\/img_p_08_001.png\",\"datePublished\":\"2023-08-16T09:06:00+00:00\",\"dateModified\":\"2023-08-16T14:27:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/#\\\/schema\\\/person\\\/b53d49d3ddf8f348fed0d484b541b1a4\"},\"description\":\"Knowing how to connect both industrial and cloud environments using MQTT on a Raspberry Pi is a very valuable skill. Learn all about it here!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/06\\\/img_p_08_001.png\",\"contentUrl\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/06\\\/img_p_08_001.png\",\"width\":199,\"height\":159},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/mqtt-on-a-raspberry-pi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MQTT on a Raspberry Pi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/\",\"name\":\"joseamaita.com\",\"description\":\"The place where I make things happen.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/#\\\/schema\\\/person\\\/b53d49d3ddf8f348fed0d484b541b1a4\",\"name\":\"Jos\u00e9 Alberto Maita\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6353d5db3662253e6d2b5cd3e64c2934727e1bbd3fc9b7a909b7dffd8d9abcab?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6353d5db3662253e6d2b5cd3e64c2934727e1bbd3fc9b7a909b7dffd8d9abcab?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6353d5db3662253e6d2b5cd3e64c2934727e1bbd3fc9b7a909b7dffd8d9abcab?s=96&d=mm&r=g\",\"caption\":\"Jos\u00e9 Alberto Maita\"},\"url\":\"https:\\\/\\\/joseamaita.com\\\/en\\\/author\\\/joseamaita\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MQTT on a Raspberry Pi - joseamaita.com","description":"Knowing how to connect both industrial and cloud environments using MQTT on a Raspberry Pi is a very valuable skill. Learn all about it here!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/","og_locale":"en_US","og_type":"article","og_title":"MQTT on a Raspberry Pi - joseamaita.com","og_description":"Knowing how to connect both industrial and cloud environments using MQTT on a Raspberry Pi is a very valuable skill. Learn all about it here!","og_url":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/","og_site_name":"joseamaita.com","article_published_time":"2023-08-16T09:06:00+00:00","article_modified_time":"2023-08-16T14:27:32+00:00","og_image":[{"width":199,"height":159,"url":"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_001.png","type":"image\/png"}],"author":"Jos\u00e9 Alberto Maita","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jos\u00e9 Alberto Maita","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#article","isPartOf":{"@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/"},"author":{"name":"Jos\u00e9 Alberto Maita","@id":"https:\/\/joseamaita.com\/en\/#\/schema\/person\/b53d49d3ddf8f348fed0d484b541b1a4"},"headline":"MQTT on a Raspberry Pi","datePublished":"2023-08-16T09:06:00+00:00","dateModified":"2023-08-16T14:27:32+00:00","mainEntityOfPage":{"@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/"},"wordCount":953,"image":{"@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_001.png","keywords":["Data Transfer","Industrial Automation","MQTT","Raspberry Pi"],"articleSection":["Data Transfer","English","Industrial Automation","MQTT","Raspberry Pi"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/","url":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/","name":"MQTT on a Raspberry Pi - joseamaita.com","isPartOf":{"@id":"https:\/\/joseamaita.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#primaryimage"},"image":{"@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_001.png","datePublished":"2023-08-16T09:06:00+00:00","dateModified":"2023-08-16T14:27:32+00:00","author":{"@id":"https:\/\/joseamaita.com\/en\/#\/schema\/person\/b53d49d3ddf8f348fed0d484b541b1a4"},"description":"Knowing how to connect both industrial and cloud environments using MQTT on a Raspberry Pi is a very valuable skill. Learn all about it here!","breadcrumb":{"@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#primaryimage","url":"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_001.png","contentUrl":"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_001.png","width":199,"height":159},{"@type":"BreadcrumbList","@id":"https:\/\/joseamaita.com\/en\/mqtt-on-a-raspberry-pi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/joseamaita.com\/en\/"},{"@type":"ListItem","position":2,"name":"MQTT on a Raspberry Pi"}]},{"@type":"WebSite","@id":"https:\/\/joseamaita.com\/en\/#website","url":"https:\/\/joseamaita.com\/en\/","name":"joseamaita.com","description":"The place where I make things happen.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/joseamaita.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/joseamaita.com\/en\/#\/schema\/person\/b53d49d3ddf8f348fed0d484b541b1a4","name":"Jos\u00e9 Alberto Maita","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6353d5db3662253e6d2b5cd3e64c2934727e1bbd3fc9b7a909b7dffd8d9abcab?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6353d5db3662253e6d2b5cd3e64c2934727e1bbd3fc9b7a909b7dffd8d9abcab?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6353d5db3662253e6d2b5cd3e64c2934727e1bbd3fc9b7a909b7dffd8d9abcab?s=96&d=mm&r=g","caption":"Jos\u00e9 Alberto Maita"},"url":"https:\/\/joseamaita.com\/en\/author\/joseamaita\/"}]}},"jetpack_featured_media_url":"https:\/\/joseamaita.com\/en\/wp-content\/uploads\/sites\/2\/2022\/06\/img_p_08_001.png","_links":{"self":[{"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/comments?post=629"}],"version-history":[{"count":55,"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/posts\/629\/revisions"}],"predecessor-version":[{"id":707,"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/posts\/629\/revisions\/707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/media\/635"}],"wp:attachment":[{"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/media?parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/categories?post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joseamaita.com\/en\/wp-json\/wp\/v2\/tags?post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}