{"id":273,"date":"2017-05-17T06:58:55","date_gmt":"2017-05-17T13:58:55","guid":{"rendered":"http:\/\/www.kenwalger.com\/blog\/?p=273"},"modified":"2017-09-01T07:56:03","modified_gmt":"2017-09-01T14:56:03","slug":"network-access-micropython","status":"publish","type":"post","link":"https:\/\/www.kenwalger.com\/blog\/iot\/network-access-micropython\/","title":{"rendered":"Network Access with MicroPython on an ESP8266"},"content":{"rendered":"<p>In a <a href=\"http:\/\/www.kenwalger.com\/blog\/iot\/micropython-webrepl-esp8266\/\" target=\"_blank\" rel=\"noopener\">previous post<\/a> we have seen how to set up a WebREPL on a <a href=\"https:\/\/www.amazon.com\/gp\/product\/B01N0B48NI\/ref=as_li_tl?ie=UTF8&amp;amp;tag=kenwalgersite-20&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;linkCode=as2&amp;amp;creativeASIN=B01N0B48NI&amp;amp;linkId=dc1e9f82e2beb42bca36616a22b8820d\" target=\"_blank\" rel=\"noopener\">NodeMCU ESP8266<\/a>\u00a0and create it&#8217;s own network. This is very handy in a lot of situations. In many other situations, however, there is already a network available for a device to join. With proper network access any machine on the network can use\u00a0the NodeMCU. Let&#8217;s take a look at <a href=\"http:\/\/www.micropython.org\" target=\"_blank\" rel=\"noopener\">MicroPython<\/a> networking and how we can leverage it to\u00a0connect to the WebREPL interface from a different machine on the network.<\/p>\n<h3>Network\u00a0Access<\/h3>\n<p>The\u00a0first step is to get the NodeMCU ESP8266 connected to our network. We will need to do this from the serial connection since our WiFi settings will soon change. See my <a href=\"http:\/\/www.kenwalger.com\/blog\/iot\/micropython-nodemcu-esp8266\/\" target=\"_blank\" rel=\"noopener\">post here<\/a> for how to setup a serial connection with the NodeMCU ESP8266. In taking a look at the <a href=\"https:\/\/docs.micropython.org\/en\/latest\/esp8266\/esp8266\/quickref.html#networking\" target=\"_blank\" rel=\"noopener\">networking<\/a> documentation on the MicroPython site, we see that there is a <code>network<\/code> module available. MicroPython has made our lives easier, very nice!<\/p>\n<p>With\u00a0<strong>ssid<\/strong> as the name of the network, and\u00a0<strong>password<\/strong> being the network password, we can get network access\u00a0with the following commands:<\/p>\n<pre>import network\nwlan = network.WLAN(network.STA_IF)\nwlan.active(True)\nwlan.connect('ssid', 'password')\n<\/pre>\n<p>Entering each of those commands into the REPL should allow the NodeMCU ESP8266 to connect to the network.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"279\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/iot\/network-access-micropython\/attachment\/networksetup\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png?fit=2342%2C292&amp;ssl=1\" data-orig-size=\"2342,292\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"NetworkSetup\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png?fit=300%2C37&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png?fit=840%2C105&amp;ssl=1\" class=\"alignnone wp-image-279\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup-300x37.png?resize=495%2C61\" alt=\"Network Access\" width=\"495\" height=\"61\" srcset=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png?resize=300%2C37&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png?resize=768%2C96&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png?resize=1024%2C128&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png?resize=1200%2C150&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkSetup.png?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 495px) 85vw, 495px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Test the Connection<\/h3>\n<p>If we give the device a moment or two to connect we can get the network configuration for the device with the <code>ifconfig<\/code> function.<\/p>\n<pre>wlan.ifconfig()\n<\/pre>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkConfig.png\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"278\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/iot\/network-access-micropython\/attachment\/networkconfig\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkConfig.png?fit=926%2C116&amp;ssl=1\" data-orig-size=\"926,116\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"NetworkConfig\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkConfig.png?fit=300%2C38&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkConfig.png?fit=840%2C105&amp;ssl=1\" class=\"alignnone wp-image-278\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkConfig-300x38.png?resize=505%2C64\" alt=\"NodeMCU Network Config\" width=\"505\" height=\"64\" srcset=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkConfig.png?resize=300%2C38&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkConfig.png?resize=768%2C96&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/NetworkConfig.png?w=926&amp;ssl=1 926w\" sizes=\"auto, (max-width: 505px) 85vw, 505px\" \/><\/a><\/p>\n<p>Great! The ESP8266 is now has network access on the 10.0.0.31 network. The other numbers there are the network mask, gateway, and the DNS address, respectively. With the board connected we can enable the WebREPL interface and start the service.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-Start-WebREPL.png\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"280\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/iot\/network-access-micropython\/attachment\/network-start-webrepl\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-Start-WebREPL.png?fit=852%2C182&amp;ssl=1\" data-orig-size=\"852,182\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Network-Start-WebREPL\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-Start-WebREPL.png?fit=300%2C64&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-Start-WebREPL.png?fit=840%2C179&amp;ssl=1\" class=\"alignnone size-medium wp-image-280\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-Start-WebREPL-300x64.png?resize=300%2C64\" alt=\"Start WebREPL\" width=\"300\" height=\"64\" srcset=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-Start-WebREPL.png?resize=300%2C64&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-Start-WebREPL.png?resize=768%2C164&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-Start-WebREPL.png?w=852&amp;ssl=1 852w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<p>Notice the two different IP addresses there. The 192.168.4.1 is the WiFi network the ESP8266 is generating and the 10.0.0.31 address is for the external network. The addresses themselves may be different on your own device based on your network.<\/p>\n<h3>Network Connection to WebREPL<\/h3>\n<p>Open the WebREPL client, as discussed in this <a href=\"http:\/\/www.kenwalger.com\/blog\/iot\/micropython-webrepl-esp8266\/\" target=\"_blank\" rel=\"noopener\">post<\/a>\u00a0and use the IP address of the local network instead of the ESP8266 default 192.168.4.1 address. In this example I&#8217;ll input <code>ws:\/\/10.0.0.31:8266\/<\/code> into the address box to connect.\u00a0Enter the password for the WebREPL that you created earlier and start entering Python commands!<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-WebREPL-connection.png\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"281\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/iot\/network-access-micropython\/attachment\/network-webrepl-connection\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-WebREPL-connection.png?fit=777%2C258&amp;ssl=1\" data-orig-size=\"777,258\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Network-WebREPL-connection\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-WebREPL-connection.png?fit=300%2C100&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-WebREPL-connection.png?fit=777%2C258&amp;ssl=1\" class=\"alignnone wp-image-281\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-WebREPL-connection-300x100.png?resize=465%2C155\" alt=\"WebREPL connection\" width=\"465\" height=\"155\" srcset=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-WebREPL-connection.png?resize=300%2C100&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-WebREPL-connection.png?resize=768%2C255&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/Network-WebREPL-connection.png?w=777&amp;ssl=1 777w\" sizes=\"auto, (max-width: 465px) 85vw, 465px\" \/><\/a><\/p>\n<p>Over in the terminal window you should also see a notification that there is a WebREPL connection.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/ShowingConnection.png\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"282\" data-permalink=\"https:\/\/www.kenwalger.com\/blog\/iot\/network-access-micropython\/attachment\/showingconnection\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/ShowingConnection.png?fit=762%2C76&amp;ssl=1\" data-orig-size=\"762,76\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ShowingConnection\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/ShowingConnection.png?fit=300%2C30&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/ShowingConnection.png?fit=762%2C76&amp;ssl=1\" class=\"alignnone wp-image-282\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/ShowingConnection-300x30.png?resize=470%2C47\" alt=\"Showing WebREPL Connection\" width=\"470\" height=\"47\" srcset=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/ShowingConnection.png?resize=300%2C30&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/05\/ShowingConnection.png?w=762&amp;ssl=1 762w\" sizes=\"auto, (max-width: 470px) 85vw, 470px\" \/><\/a><\/p>\n<h3>Wrap-Up<\/h3>\n<p>In this short post we have seen here how we can obtain network access for\u00a0our NodeMCU ESP8266 to an existing network and access it through the WebREPL client. Now\u00a0you can access it through the <a href=\"http:\/\/www.kenwalger.com\/blog\/iot\/micropython-nodemcu-esp8266\/\" target=\"_blank\" rel=\"noopener\">serial interface<\/a>, it&#8217;s own network, or a device on the same network. With this variety of ways to access an ESP8266 device<\/p>\n<hr \/>\n<p>Follow me on Twitter <a href=\"https:\/\/www.twitter.com\/kenwalger\" target=\"_blank\" rel=\"noopener\">@kenwalger<\/a> to get the latest updates on my postings on MicroPython and IoT.<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F273&#038;t=Network%20Access%20with%20MicroPython%20on%20an%20ESP8266&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F273&#038;p&#091;images&#093;&#091;0&#093;=https%3A%2F%2Fi0.wp.com%2Fwww.kenwalger.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F04%2Fmicro-python-e1493094682987.png%3Ffit%3D125%252C125%26ssl%3D1&#038;p&#091;title&#093;=Network%20Access%20with%20MicroPython%20on%20an%20ESP8266\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/facebook.png?resize=48%2C48&#038;ssl=1\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F273&#038;text=Hey%20check%20this%20out\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/twitter.png?resize=48%2C48&#038;ssl=1\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F273&#038;title=Network%20Access%20with%20MicroPython%20on%20an%20ESP8266\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/reddit.png?resize=48%2C48&#038;ssl=1\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F273&#038;title=Network%20Access%20with%20MicroPython%20on%20an%20ESP8266\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/linkedin.png?resize=48%2C48&#038;ssl=1\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Network%20Access%20with%20MicroPython%20on%20an%20ESP8266&#038;body=Hey%20check%20this%20out:%20https%3A%2F%2Fwww.kenwalger.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F273\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/mail.png?resize=48%2C48&#038;ssl=1\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>In a previous post we have seen how to set up a WebREPL on a NodeMCU ESP8266\u00a0and create it&#8217;s own network. This is very handy in a lot of situations. In many other situations, however, there is already a network available for a device to join. With proper network access any machine on the network &hellip; <a href=\"https:\/\/www.kenwalger.com\/blog\/iot\/network-access-micropython\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Network Access with MicroPython on an ESP8266&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":197,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pmpro_default_level":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"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":[27,28],"tags":[36,46,35,41],"yst_prominent_words":[246,254,910,255,253,249,909,240,257,238,248,239,250,256,722,708,244,247,243,245],"class_list":["post-273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iot","category-micropython","tag-esp8266","tag-networking","tag-nodemcu","tag-webrepl","pmpro-has-access"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.kenwalger.com\/blog\/wp-content\/uploads\/2017\/04\/micro-python-e1493094682987.png?fit=125%2C125&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8lx70-4p","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":5,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/posts\/273\/revisions\/591"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/media\/197"}],"wp:attachment":[{"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/tags?post=273"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.kenwalger.com\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}