{"id":19,"date":"2023-09-13T15:47:28","date_gmt":"2023-09-13T14:47:28","guid":{"rendered":"https:\/\/otgui.com\/?p=19"},"modified":"2023-09-13T16:17:24","modified_gmt":"2023-09-13T15:17:24","slug":"esp32-web-server-part-2","status":"publish","type":"post","link":"https:\/\/otgui.com\/?p=19","title":{"rendered":"ESP32 Web Server part 2"},"content":{"rendered":"\n<p>After the ESP32 development environment was set up. Now we can run some sample code. There are a lot of sample code in Arduino IDE.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"972\" height=\"981\" src=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-1.png\" alt=\"\" class=\"wp-image-20\" srcset=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-1.png 972w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-1-297x300.png 297w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-1-150x150.png 150w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-1-768x775.png 768w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/figure>\n\n\n\n<p>The  Arduino IDE will open the sample code.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"750\" src=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-2-1024x750.png\" alt=\"\" class=\"wp-image-21\" srcset=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-2-1024x750.png 1024w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-2-300x220.png 300w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-2-768x562.png 768w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-2.png 1147w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Change the ssid and password to connect with Wifi.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Then you need select port. After connected the ESP32 to PC, it will show up in Port<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"659\" src=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-5-1024x659.png\" alt=\"\" class=\"wp-image-27\" srcset=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-5-1024x659.png 1024w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-5-300x193.png 300w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-5-768x495.png 768w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-5.png 1191w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"325\" height=\"160\" src=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-3.png\" alt=\"\" class=\"wp-image-23\" srcset=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-3.png 325w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-3-300x148.png 300w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/figure>\n\n\n\n<p>Click the upload button to run the code in ESP32.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"363\" src=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-6-1024x363.png\" alt=\"\" class=\"wp-image-28\" srcset=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-6-1024x363.png 1024w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-6-300x106.png 300w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-6-768x272.png 768w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-6.png 1114w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>after it done, it will show something like this.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Open &#8220;Serial Monitor&#8221;<\/h2>\n\n\n\n<p>The Arduino IDE Serial Monitor is a built-in tool in the Arduino development environment that allows you to communicate with and monitor the output of an Arduino board or other microcontroller over a serial connection. It&#8217;s a valuable tool for debugging, testing, and interacting with your Arduino projects.<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"645\" src=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-4-1024x645.png\" alt=\"\" class=\"wp-image-25\" srcset=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-4-1024x645.png 1024w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-4-300x189.png 300w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-4-768x484.png 768w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-4.png 1152w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>it will show ip address, <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"309\" height=\"114\" src=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-7.png\" alt=\"\" class=\"wp-image-30\" srcset=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-7.png 309w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-7-300x111.png 300w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><\/figure>\n\n\n\n<p> open a browser and type the ip address there<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"463\" height=\"115\" src=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-8.png\" alt=\"\" class=\"wp-image-32\" srcset=\"https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-8.png 463w, https:\/\/otgui.com\/wp-content\/uploads\/2023\/09\/image-8-300x75.png 300w\" sizes=\"(max-width: 463px) 100vw, 463px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After the ESP32 development environment was set up. Now we can run some sample code. There are a lot of sample code in Arduino IDE. The Arduino IDE will open the sample code. Change the ssid and password to connect with Wifi. Then you need select port. After connected the ESP32 to PC, it will &#8230; <a title=\"ESP32 Web Server part 2\" class=\"read-more\" href=\"https:\/\/otgui.com\/?p=19\" aria-label=\"More on ESP32 Web Server part 2\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/otgui.com\/index.php?rest_route=\/wp\/v2\/posts\/19"}],"collection":[{"href":"https:\/\/otgui.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/otgui.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/otgui.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/otgui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":4,"href":"https:\/\/otgui.com\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":33,"href":"https:\/\/otgui.com\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions\/33"}],"wp:attachment":[{"href":"https:\/\/otgui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/otgui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/otgui.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}