{"id":95244,"date":"2020-03-24T10:38:14","date_gmt":"2020-03-24T10:38:14","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=95244"},"modified":"2020-03-24T10:43:30","modified_gmt":"2020-03-24T10:43:30","slug":"esp8266-nodemcu-digital-inputs-outputs-arduino","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/esp8266-nodemcu-digital-inputs-outputs-arduino\/","title":{"rendered":"ESP8266 NodeMCU Digital Inputs and Digital Outputs (Arduino IDE)"},"content":{"rendered":"\n<p>In this getting started guide you&#8217;ll learn how to read digital inputs like a button switch and control digital outputs like an LED using the ESP8266 NodeMCU board with Arduino IDE.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Read-Inputs-Control-Outputs-Arduino-IDE.jpg?resize=1024%2C576&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 NodeMCU Read Inputs Control Outputs Arduino IDE\" class=\"wp-image-95246\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Read-Inputs-Control-Outputs-Arduino-IDE.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Read-Inputs-Control-Outputs-Arduino-IDE.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Read-Inputs-Control-Outputs-Arduino-IDE.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Read-Inputs-Control-Outputs-Arduino-IDE.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>We&#8217;ll program the ESP8266 using Arduino IDE. So, make sure you have the ESP8266 boards add-on installed before proceeding:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/how-to-install-esp8266-board-arduino-ide\/\">Installing ESP8266 Board in Arduino IDE (Windows, Mac OS X, Linux)<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">ESP8266 NodeMCU Control Digital Outputs<\/h2>\n\n\n\n<p>First you need set the GPIO you want to control as an <span class=\"rnthl rntliteral\">OUTPUT<\/span>. Use the <span class=\"rnthl rntliteral\">pinMode()<\/span> function as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>pinMode(GPIO, OUTPUT);<\/code><\/pre>\n\n\n\n<p>To control a digital output you just need to use the <span class=\"rnthl rntliteral\">digitalWrite()<\/span> function, that accepts as arguments, the GPIO (int number) you are referring to, and the state, either <span class=\"rnthl rntliteral\">HIGH<\/span> or <span class=\"rnthl rntliteral\">LOW<\/span>.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>digitalWrite(GPIO, STATE);<\/code><\/pre>\n\n\n\n<p class=\"rntbox rntclblue\">Take a look at the <a href=\"https:\/\/randomnerdtutorials.com\/esp8266-pinout-reference-gpios\/\">ESP8266 GPIO Reference Guide<\/a> to learn which GPIOs are more suitable to use as outputs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ESP8266 NodeMCU Read Digital Inputs<\/h2>\n\n\n\n<p>First, set the GPIO you want to read as <span class=\"rnthl rntliteral\">INPUT<\/span>, using the <span class=\"rnthl rntliteral\">pinMode()<\/span> function as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>pinMode(GPIO, INPUT);<\/code><\/pre>\n\n\n\n<p>To read a digital input, like a button, you use the <span class=\"rnthl rntliteral\">digitalRead()<\/span> function, that accepts as argument, the GPIO (int number) you are referring to.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>digitalRead(GPIO);<\/code><\/pre>\n\n\n\n<p class=\"rntbox rntclblue\">Take a look at the <a href=\"https:\/\/randomnerdtutorials.com\/esp8266-pinout-reference-gpios\/\">ESP8266 GPIO Reference Guide<\/a> to learn which GPIOs are more suitable to use as inputs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Project Example<\/h2>\n\n\n\n<p>To show you how to use digital inputs and digital outputs, we\u2019ll build a simple project example with a pushbutton and an LED. We\u2019ll read the state of the pushbutton and light up the LED accordingly as illustrated in the following figure.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"750\" height=\"373\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/10\/led_pushbutton.png?resize=750%2C373&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 NodeMCU button pressed or not to turn LED on and off\" class=\"wp-image-76180\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/10\/led_pushbutton.png?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/10\/led_pushbutton.png?resize=300%2C149&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Schematic Diagram<\/h2>\n\n\n\n<p>Before proceeding, you need to assemble a circuit with an LED and a pushbutton. We\u2019ll connect the LED to <span class=\"rnthl rntcblue\">GPIO 5<\/span> (D1) and the pushbutton to <span class=\"rnthl rntcgreen\">GPIO 4<\/span> (D2).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parts Required<\/h3>\n\n\n\n<p>Here\u2019s a list of the parts to you need to build the circuit:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/makeradvisor.com\/tools\/esp8266-esp-12e-nodemcu-wi-fi-development-board\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">ESP8266 <\/a>(read <a href=\"https:\/\/makeradvisor.com\/best-esp8266-wi-fi-development-board\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Best ESP8266 Dev Boards<\/a>)<\/li><li><a href=\"https:\/\/makeradvisor.com\/tools\/3mm-5mm-leds-kit-storage-box\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">5 mm LED<\/a><\/li><li><a href=\"https:\/\/makeradvisor.com\/tools\/mb-102-solderless-breadboard-830-points\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">330 Ohm resistor<\/a><\/li><li><a href=\"https:\/\/makeradvisor.com\/tools\/pushbuttons-kit\/\">Pushbutton<\/a><\/li><li><a href=\"https:\/\/makeradvisor.com\/tools\/resistors-kits\/\">10k Ohm resistor<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/mb-102-solderless-breadboard-830-points\/\" target=\"_blank\">Breadboard<\/a><\/li><li><a href=\"https:\/\/makeradvisor.com\/tools\/jumper-wires-kit-120-pieces\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Jumper wires<\/a><\/li><\/ul>\n\n\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/led_button_esp8266_bb.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1038\" height=\"573\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/led_button_esp8266_bb.png?resize=1038%2C573&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 NodeMCU Digital Input and Digital Output Schematic Circuit LED Pushbutton\" class=\"wp-image-84227\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/led_button_esp8266_bb.png?w=1038&amp;quality=100&amp;strip=all&amp;ssl=1 1038w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/led_button_esp8266_bb.png?resize=300%2C166&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/led_button_esp8266_bb.png?resize=768%2C424&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/led_button_esp8266_bb.png?resize=1024%2C565&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Code<\/h2>\n\n\n\n<p>Copy the following code to your Arduino IDE.<\/p>\n\n\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">\/\/ Complete Instructions: https:\/\/RandomNerdTutorials.com\/esp8266-nodemcu-digital-inputs-outputs-arduino\/\n\n\/\/ set pin numbers\nconst int buttonPin = 4;     \/\/ the number of the pushbutton pin\nconst int ledPin =  5;       \/\/ the number of the LED pin\n\n\/\/ variable for storing the pushbutton status\nint buttonState = 0;\n\nvoid setup() {\n  \/\/ initialize the pushbutton pin as an input\n  pinMode(buttonPin, INPUT);\n  \/\/ initialize the LED pin as an output\n  pinMode(ledPin, OUTPUT);\n}\n\nvoid loop() {\n  \/\/ read the state of the pushbutton value\n  buttonState = digitalRead(buttonPin);\n  \/\/ check if the pushbutton is pressed.\n  \/\/ if it is, the buttonState is HIGH\n  if (buttonState == HIGH) {\n    \/\/ turn LED on\n    digitalWrite(ledPin, HIGH);\n  } else {\n    \/\/ turn LED off\n    digitalWrite(ledPin, LOW);\n  }\n}\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/raw\/master\/Projects\/ESP8266\/ESP8266_Digital_Inputs_Outputs.ino\" target=\"_blank\">View raw code<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the Code Works<\/h2>\n\n\n\n<p>In the following two lines, you create variables to assign pins:<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>const int buttonPin = 4;\nconst int ledPin = 5;<\/code><\/pre>\n\n\n\n<p>The button is connected to <span class=\"rnthl rntcgreen\">GPIO 4<\/span> and the LED is connected to <span class=\"rnthl rntcblue\">GPIO 5<\/span>. When using the Arduino IDE with the ESP8266, 4 corresponds to <span class=\"rnthl rntcgreen\">GPIO 4<\/span> and 5 corresponds to <span class=\"rnthl rntcblue\">GPIO 5<\/span>.<\/p>\n\n\n\n<p>Next, you create a variable to hold the button state. By default, it&#8217;s 0 (not pressed).<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>int buttonState = 0;<\/code><\/pre>\n\n\n\n<p>In the <span class=\"rnthl rntliteral\">setup()<\/span>, you initialize the button as an <span class=\"rnthl rntliteral\">INPUT<\/span>, and the LED as an <span class=\"rnthl rntliteral\">OUTPUT<\/span>. For that, you use the <span class=\"rnthl rntliteral\">pinMode()<\/span> function that accepts the pin you are referring to, and the mode: <span class=\"rnthl rntliteral\">INPUT<\/span> or <span class=\"rnthl rntliteral\">OUTPUT<\/span>.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>pinMode(buttonPin, INPUT);\npinMode(ledPin, OUTPUT);<\/code><\/pre>\n\n\n\n<p> In the <span class=\"rnthl rntliteral\">loop()<\/span> is where you read the button state and set the LED accordingly.<\/p>\n\n\n\n<p>In the next line, you read the button state and save it in the <span class=\"rnthl rntliteral\">buttonState<\/span> variable. As we\u2019ve seen previously, you use the <span class=\"rnthl rntliteral\">digitalRead()<\/span> function.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>buttonState = digitalRead(buttonPin);<\/code><\/pre>\n\n\n\n<p>The following if statement, checks whether the button state is <span class=\"rnthl rntliteral\">HIGH<\/span>. If it is, it turns the LED on using the <span class=\"rnthl rntliteral\">digitalWrite()<\/span> function that accepts as argument the <span class=\"rnthl rntliteral\">ledPin<\/span>, and the state <span class=\"rnthl rntliteral\">HIGH<\/span>.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>if (buttonState == HIGH) {\n  digitalWrite(ledPin, HIGH);\n}<\/code><\/pre>\n\n\n\n<p>If the button state is not <span class=\"rnthl rntliteral\">HIGH<\/span>, you set the LED off. Just set <span class=\"rnthl rntliteral\">LOW<\/span> as a second argument to in the <span class=\"rnthl rntliteral\">digitalWrite()<\/span> function.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>else {\n  digitalWrite(ledPin, LOW);\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Uploading the Code<\/h2>\n\n\n\n<p>Before clicking the upload button, go to&nbsp;<strong>Tools<\/strong>&nbsp;&gt;&nbsp;<strong>Board<\/strong>, and select the board you\u2019re using. In my case, it\u2019s the <a href=\"https:\/\/makeradvisor.com\/tools\/esp8266-esp-12e-nodemcu-wi-fi-development-board\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">NodeMCU 1.0 (ESP-12 E Module)<\/a>. If you don&#8217;t know your ESP8266 model, you can select &#8220;Generic ESP8266 Module&#8221;.<\/p>\n\n\n\n<p>Go to <strong>Tools <\/strong>&gt; <strong>Port <\/strong>and select the COM port the ESP8266 is connected to. Then, press the upload button and wait for the \u201c<strong>Done uploading<\/strong>\u201d message. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<p>After uploading the code, test your circuit. Your LED should light up when you press the pushbutton:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Input-Output-Button-Pressed-LED-On-Arduino-IDE.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 NodeMCU Input Output Button Pressed LED On Arduino IDE\" class=\"wp-image-95251\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Input-Output-Button-Pressed-LED-On-Arduino-IDE.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Input-Output-Button-Pressed-LED-On-Arduino-IDE.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>And turn off when you release it:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Input-Output-Button-Not-Pressed-Arduino-IDE.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 NodeMCU Input Output Button Not Pressed Arduino IDE\" class=\"wp-image-95250\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Input-Output-Button-Not-Pressed-Arduino-IDE.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Input-Output-Button-Not-Pressed-Arduino-IDE.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>With this getting started guide, you&#8217;ve learned how to read digital inputs and control digital outputs with the ESP8266 using Arduino IDE.<\/p>\n\n\n\n<p>If you want to learn how to read analog inputs, or output PWM signals, read the following guides:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/esp8266-adc-reading-analog-values-with-nodemcu\/\">ESP8266 ADC \u2013 Read Analog Values<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp8266-pwm-arduino-ide\/\">ESP8266 PWM &#8211; Dim LED<\/a><\/li><\/ul>\n\n\n\n<p>You may also find useful taking a look at the <a href=\"https:\/\/randomnerdtutorials.com\/esp8266-pinout-reference-gpios\/\">ESP8266 GPIO Reference<\/a> that shows how to use the ESP8266 GPIOs and its functions.<\/p>\n\n\n\n<p>Finally, if you want to learn more about the ESP8266, take a look at our resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/home-automation-using-esp8266\/\">Home Automation using ESP8266<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/micropython-programming-with-esp32-and-esp8266\/\">MicroPython Programming with ESP32\/ESP8266<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/projects-esp8266\/\">More ESP8266 Projects&#8230;<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this getting started guide you&#8217;ll learn how to read digital inputs like a button switch and control digital outputs like an LED using the ESP8266 NodeMCU board with Arduino &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"ESP8266 NodeMCU Digital Inputs and Digital Outputs (Arduino IDE)\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/esp8266-nodemcu-digital-inputs-outputs-arduino\/#more-95244\" aria-label=\"Read more about ESP8266 NodeMCU Digital Inputs and Digital Outputs (Arduino IDE)\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":95250,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[214,265,246,300,240,264],"tags":[],"class_list":["post-95244","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp8266","category-esp8266-project","category-esp8266-arduino-ide","category-0-esp8266","category-esp8266-projects","category-project"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2020\/03\/ESP8266-NodeMCU-Input-Output-Button-Not-Pressed-Arduino-IDE.jpg?fit=750%2C422&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/95244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=95244"}],"version-history":[{"count":0,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/95244\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/95250"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=95244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=95244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=95244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}