{"id":64232,"date":"2021-10-25T22:30:32","date_gmt":"2021-10-26T02:30:32","guid":{"rendered":"https:\/\/www.engineersgarage.com\/?p=64232"},"modified":"2024-02-05T16:55:50","modified_gmt":"2024-02-05T21:55:50","slug":"using-smtp-in-the-iot","status":"publish","type":"post","link":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/","title":{"rendered":"Using SMTP in the IoT"},"content":{"rendered":"<p>Controlling IoT devices requires specific apps and settings. But you can also control them using emails since emailing is possible using SMTP (Simple Mail Transfer Protocol), which is on the TCP\/IP stack. Therefore, the devices that support TCP\/IP stack can use emails as command and control.<\/p>\n<p>So, for an application purpose, we will be making a device that will be sensing any object&#8217;s presence in a particular range and clicking an image when anyone will be in the detection range of the device. Finally, it will send an email with the image as an attachment.<\/p>\n<p><strong>Components Required<\/strong><\/p>\n<ol>\n<li>Raspberry Pi<\/li>\n<li>Raspberry Pi camera module<\/li>\n<li>Ultrasonic sensor (HC-SR04)<\/li>\n<li>Basic Understanding of Python<\/li>\n<li>1k\u2126, 2k\u2126 Resistor, jumper Wires<\/li>\n<\/ol>\n<p><strong>Schematic and connection<\/strong><\/p>\n<div id=\"attachment_64233\" style=\"width: 748px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/06\/Image-1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-64233\" class=\"wp-image-64233 size-full\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/06\/Image-1.png\" alt=\"\" width=\"738\" height=\"515\" srcset=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/06\/Image-1.png 738w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/06\/Image-1-300x209.png 300w, https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/06\/Image-1-341x238.png 341w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/a><p id=\"caption-attachment-64233\" class=\"wp-caption-text\">Figure 1. Connection diagram<\/p><\/div>\n<ol>\n<li>Connect VCC of HC-SR04 to 5V of Pi and GND to Ground<\/li>\n<li>Connect TRIG Pi to GPIO23<\/li>\n<li>For the ECHO pin, the Raspberry Pi\u2019s GPIO does not support a 5 V signal directly, so we will be using a voltage divider to connect the ECHO pin to GPIO24 and make a 5V signal 3.3V.<\/li>\n<\/ol>\n<p><strong>Understanding the basic functionality<\/strong><\/p>\n<ol>\n<li>We will be using a Python script to control our sensor module and camera modules input and output connected to the Pi for detection and sensing.<\/li>\n<li>The sensor will send ultrasonic waves and detect the waves reflating back on the ECHO pin; thus, we can calculate the distance at which the object is placed from the sensor. So, we will make a distance area where we can get an ECHO signal if an object is placed there.<\/li>\n<li>The echo signal will act as a click button for our camera module, and thus we will be getting an image every time someone enters the detection area.<\/li>\n<li>After taking the picture, we will be using SMTP to transfer captured image to our mailbox.<\/li>\n<\/ol>\n<p><strong>Implementation<\/strong><\/p>\n<p>We will use Python 2.7 to implement the complete functionality, including many multithreading and parallel tasks; therefore, a basic understanding of Python is required. The implementation part can be divided into three parts.<\/p>\n<ol>\n<li>Importing important libraries<\/li>\n<li>Detection of object<\/li>\n<li>Clicking the image of object<\/li>\n<li>Emailing the image to mailbox<\/li>\n<\/ol>\n<p><strong>Setup &amp; Importing important libraries: <\/strong>To perform GPIO and camera functions in Raspberry Pi we will need some Python libraries. We will be importing them to control our camera module as well.<br \/>\nFor the camera, we need to install the library using the following command in the terminal.<br \/>\n<span style=\"color: #993300;\"><strong>$ sudo apt-get install python-picamera<\/strong><\/span><\/p>\n<p>After installing, we will be importing the theme in our main script. We will import our libraries on top of that.<br \/>\n<span style=\"color: #993300;\"><strong>import RPi.GPIO as GPIO<\/strong><\/span><br \/>\n<span style=\"color: #993300;\"><strong>import picamera<\/strong><\/span><br \/>\nWe also have to import other libraries required for multithreading.<\/p>\n<p>We need to import some libraries such as base64, MIME (for attachments like an image) and SMPT, for emails.<br \/>\n<span style=\"color: #993300;\"><strong>import imaplib<\/strong><\/span><br \/>\n<span style=\"color: #993300;\"><strong>from base64 import b64decode<\/strong><\/span><br \/>\n<span style=\"color: #993300;\"><strong>from smtplib import SMTP<\/strong><\/span><br \/>\n<span style=\"color: #993300;\"><strong>from email.MIMEMultipart import MIMEMultipart<\/strong><\/span><br \/>\n<span style=\"color: #993300;\"><strong>from email.MIMEBase import MIMEBase<\/strong><\/span><br \/>\n<span style=\"color: #993300;\"><strong>from email.MIMEText import MIMEText<\/strong><\/span><br \/>\n<span style=\"color: #993300;\"><strong>from email import Encoders<\/strong><\/span><\/p>\n<p>Now you need to change the variables which stores the value for email and password.<br \/>\n<strong><span style=\"color: #993300;\">gmail_user = &#8216;username@gmail.com&#8217;<\/span><\/strong><br \/>\n<strong><span style=\"color: #993300;\">gmail_pwd = &#8216;gmail_password&#8217;<\/span><\/strong><br \/>\n<strong><span style=\"color: #993300;\">server = &#8216;smtp.gmail.com&#8217;<\/span><\/strong><br \/>\n<strong><span style=\"color: #993300;\">server_port = 587<\/span><\/strong><\/p>\n<p><strong>Detection of object: <\/strong>We will make a function that will keep triggering the ultrasonic sensor to send ultrasonic waves out and detect if anything comes in range.<br \/>\n<span style=\"color: #993300;\"><strong>while GPIO.input(ECHO)==1:<br \/>\n<\/strong><\/span>At detection this function will call a function to click an image of the object. Since this is a continuous task, it will be in our main loop.<br \/>\n<strong><span style=\"color: #993300;\">if distance &lt; distance_detect:<\/span><\/strong><br \/>\n<strong><span style=\"color: #993300;\">capture_image()<\/span><\/strong><\/p>\n<p><strong>Clicking the image of object: <\/strong>To click the image of the object, we will create a function that will be clicking upon calling and storing the image on local storage.<br \/>\n<strong><span style=\"color: #993300;\">camera.capture(filepath)<br \/>\n<\/span><\/strong>After clicking, it will call a function which will be composing an email with the image as an attachment.<br \/>\n<span style=\"color: #993300;\"><strong>download(&#8216;Image&#8217;,filepath)<\/strong><\/span><\/p>\n<p><strong>Emailing the image to mailbox:<br \/>\n<\/strong>Using the SMTP library and its methods, this function takes parameters like image name and its path, time of the click, and email to the mailbox. It is a parallel task as the uploading can take time according to the connection speed. We don\u2019t want to stop another task in that period.<br \/>\n<strong><span style=\"color: #993300;\">sendEmail(rightnow, self.jobid, [self.filepath])<\/span><\/strong><\/p>\n<p>So, this is how we can use emails to communicate with our IoT devices.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<style>\n.gist-data{    height:250px; \/\/ Any height    overflow: auto;<br \/>}<\/style>\n<p><script src=\"https:\/\/gist.github.com\/Ajak58a\/e37e873a2416c2eb92c997a1416f6a71.js\"><\/script><\/p>\n<p><strong>Video<\/strong><\/p>\n<div style=\"width: 740px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-64232-1\" width=\"740\" height=\"463\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/video.mp4?_=1\" \/><a href=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/video.mp4\">https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/video.mp4<\/a><\/video><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Controlling IoT devices requires specific apps and settings. But you can also control them using emails since emailing is possible using SMTP (Simple Mail Transfer Protocol), which is on the TCP\/IP stack. Therefore, the devices that support TCP\/IP stack can use emails as command and control. So, for an application purpose, we will be making&hellip;<\/p>\n","protected":false},"author":2,"featured_media":64554,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[13,3993],"tags":[1408,1846,1174,497],"class_list":{"2":"type-post","13":"entry","14":"has-post-thumbnail"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.2 (Yoast SEO v25.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using SMTP in the IoT<\/title>\n<meta name=\"description\" content=\"Controlling IoT devices requires specific apps and settings. But you can also control them using emails since emailing is possible using SMTP\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using SMTP in the IoT\" \/>\n<meta property=\"og:description\" content=\"Controlling IoT devices requires specific apps and settings. But you can also control them using emails since emailing is possible using SMTP\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/\" \/>\n<meta property=\"og:site_name\" content=\"Engineers Garage\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engineersgarage\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"770\" \/>\n\t<meta property=\"og:image:height\" content=\"510\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"engineersgarage\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:site\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"engineersgarage\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/\"},\"author\":{\"name\":\"engineersgarage\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/2dfcb5443bd7fbe8cc18115326c77e9e\"},\"headline\":\"Using SMTP in the IoT\",\"datePublished\":\"2021-10-26T02:30:32+00:00\",\"dateModified\":\"2024-02-05T21:55:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/\"},\"wordCount\":747,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png\",\"keywords\":[\"IoT\",\"python\",\"Raspberry Pi\",\"smtp\"],\"articleSection\":[\"Electronic Projects\",\"Raspberry pi\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/\",\"url\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/\",\"name\":\"Using SMTP in the IoT\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png\",\"datePublished\":\"2021-10-26T02:30:32+00:00\",\"dateModified\":\"2024-02-05T21:55:50+00:00\",\"description\":\"Controlling IoT devices requires specific apps and settings. But you can also control them using emails since emailing is possible using SMTP\",\"breadcrumb\":{\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#primaryimage\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png\",\"width\":770,\"height\":510,\"caption\":\"SMTP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.engineersgarage.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using SMTP in the IoT\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.engineersgarage.com\/#website\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"name\":\"Engineers Garage\",\"description\":\"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News\",\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.engineersgarage.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\",\"name\":\"Engineer's Garage - WTWH Media\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"width\":372,\"height\":52,\"caption\":\"Engineer's Garage - WTWH Media\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/engineersgarage\",\"https:\/\/x.com\/EngineersGarage\",\"https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/2dfcb5443bd7fbe8cc18115326c77e9e\",\"name\":\"engineersgarage\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3b20ae2723674b796feb698a7de33ffb49ad0c793eb0193de476e3511997b98e?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3b20ae2723674b796feb698a7de33ffb49ad0c793eb0193de476e3511997b98e?s=96&r=g\",\"caption\":\"engineersgarage\"},\"sameAs\":[\"http:\/\/www.engineersgarage.com\"],\"url\":\"https:\/\/www.engineersgarage.com\/author\/engineersgarag\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Using SMTP in the IoT","description":"Controlling IoT devices requires specific apps and settings. But you can also control them using emails since emailing is possible using SMTP","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:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/","og_locale":"en_US","og_type":"article","og_title":"Using SMTP in the IoT","og_description":"Controlling IoT devices requires specific apps and settings. But you can also control them using emails since emailing is possible using SMTP","og_url":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/","og_site_name":"Engineers Garage","article_publisher":"https:\/\/www.facebook.com\/engineersgarage","og_image":[{"width":770,"height":510,"url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png","type":"image\/png"}],"author":"engineersgarage","twitter_card":"summary_large_image","twitter_creator":"@EngineersGarage","twitter_site":"@EngineersGarage","twitter_misc":{"Written by":"engineersgarage","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#article","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/"},"author":{"name":"engineersgarage","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/2dfcb5443bd7fbe8cc18115326c77e9e"},"headline":"Using SMTP in the IoT","datePublished":"2021-10-26T02:30:32+00:00","dateModified":"2024-02-05T21:55:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/"},"wordCount":747,"commentCount":0,"publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"image":{"@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png","keywords":["IoT","python","Raspberry Pi","smtp"],"articleSection":["Electronic Projects","Raspberry pi"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/","url":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/","name":"Using SMTP in the IoT","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#primaryimage"},"image":{"@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png","datePublished":"2021-10-26T02:30:32+00:00","dateModified":"2024-02-05T21:55:50+00:00","description":"Controlling IoT devices requires specific apps and settings. But you can also control them using emails since emailing is possible using SMTP","breadcrumb":{"@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#primaryimage","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured.png","width":770,"height":510,"caption":"SMTP"},{"@type":"BreadcrumbList","@id":"https:\/\/www.engineersgarage.com\/using-smtp-in-the-iot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.engineersgarage.com\/"},{"@type":"ListItem","position":2,"name":"Using SMTP in the IoT"}]},{"@type":"WebSite","@id":"https:\/\/www.engineersgarage.com\/#website","url":"https:\/\/www.engineersgarage.com\/","name":"Engineers Garage","description":"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News","publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.engineersgarage.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.engineersgarage.com\/#organization","name":"Engineer's Garage - WTWH Media","url":"https:\/\/www.engineersgarage.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","width":372,"height":52,"caption":"Engineer's Garage - WTWH Media"},"image":{"@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/engineersgarage","https:\/\/x.com\/EngineersGarage","https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw"]},{"@type":"Person","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/2dfcb5443bd7fbe8cc18115326c77e9e","name":"engineersgarage","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3b20ae2723674b796feb698a7de33ffb49ad0c793eb0193de476e3511997b98e?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3b20ae2723674b796feb698a7de33ffb49ad0c793eb0193de476e3511997b98e?s=96&r=g","caption":"engineersgarage"},"sameAs":["http:\/\/www.engineersgarage.com"],"url":"https:\/\/www.engineersgarage.com\/author\/engineersgarag\/"}]}},"featured_image_src":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured-600x400.png","featured_image_src_square":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2021\/07\/SMPT-IoT-featured-600x510.png","author_info":{"display_name":"engineersgarage","author_link":"https:\/\/www.engineersgarage.com\/author\/engineersgarag\/"},"_links":{"self":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/64232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/comments?post=64232"}],"version-history":[{"count":0,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/64232\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media\/64554"}],"wp:attachment":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media?parent=64232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/categories?post=64232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/tags?post=64232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}