{"id":700,"date":"2019-04-23T23:46:53","date_gmt":"2019-04-23T14:46:53","guid":{"rendered":"https:\/\/ahnbk.com\/?p=700"},"modified":"2019-04-24T12:11:17","modified_gmt":"2019-04-24T03:11:17","slug":"upip%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%98%ec%97%ac-python-%eb%9d%bc%ec%9d%b4%eb%b8%8c%eb%9f%ac%eb%a6%ac-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/ahnbk.com\/?p=700","title":{"rendered":"upip\ub97c \uc774\uc6a9\ud558\uc5ec MicroPython \ub77c\uc774\ube0c\ub7ec\ub9ac \uc124\uce58\ud558\uae30"},"content":{"rendered":"\n<p>Python\uc5d0\uc11c pip\ub97c \uc774\uc6a9\ud574 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud588\ub358 \uac83\ucc98\ub7fc, MicroPython\uc5d0\uc11c\ub3c4 upip\ub97c \uc774\uc6a9\ud558\uba74 MicroPython\uc73c\ub85c \ud3ec\ud305\ub41c Python \ucf54\uc5b4 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4. (\uc2ec\uc9c0\uc5b4 \ubcf4\ub4dc \ub808\ubca8\uc5d0\uc11c!!)<\/p>\n\n\n\n<p>\uba3c\uc800, WiFi\uac00 \uc5f0\uacb0\ub418\uc5b4 \uc788\uc5b4\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>>>> import network\n>>> sta_if = network.WLAN(network.STA_IF)\n>>> sta_if.active(True)\n>>> sta_if.connect(\"&lt;your-ap-name>\", \"&lt;your-ap-password>\")<\/code><\/pre>\n\n\n\n<p>\uc5f0\uacb0\uc774 \ub418\uace0 IP\uac00 \ud560\ub2f9\ub418\uc5c8\ub294\uc9c0 \ud655\uc778 \ud6c4,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>>>> import upip\n>>> upip.install(\"&lt;\uc124\uce58\ud560 \ud328\ud0a4\uc9c0\uba85>\")<\/code><\/pre>\n\n\n\n<p>\uc704\uc640 \uac19\uc774 \uc2e4\ud589\ud558\uba74 \ubcf4\ub4dc\uc5d0 \uc9c1\uc811 Python \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ubc1b\uc544\uc628\ub2e4. \uc608\ub97c \ub4e4\uba74,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>>>> upip.install(\"micropython-uasyncio\")\nInstalling to: \/lib\/\nWarning: pypi.org SSL certificate is not validated\nInstalling micropython-uasyncio 2.3 from https:\/\/files.pythonhosted.org\/packages\/2f\/d0\/da285cf389f3736b204514f936b9621976735096ba02f6cd701ef0426a05\/micropython-uasyncio-2.3.tar.gz\nInstalling micropython-uasyncio.core 2.3 from https:\/\/files.pythonhosted.org\/packages\/2b\/3a\/5737ff41dfe85d3ddf4c783e9289f6c869526fd31b495bf012612e6c82cf\/micropython-uasyncio.core-2.3.tar.gz\n\n>>> import uasyncio<\/code><\/pre>\n\n\n\n<p>MicroPython\uc73c\ub85c \ud3ec\ud305\ub41c Python  \ucf54\uc5b4 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/micropython\/micropython-lib\/ (opens in a new tab)\" href=\"https:\/\/github.com\/micropython\/micropython-lib\/\" target=\"_blank\">https:\/\/github.com\/micropython\/micropython-lib\/<\/a>\uc5d0\uc11c \ud655\uc778 \uac00\ub2a5\ud558\ub2e4. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\uc5d0\uc11c pip\ub97c \uc774\uc6a9\ud574 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud588\ub358 \uac83\ucc98\ub7fc, MicroPython\uc5d0\uc11c\ub3c4 upip\ub97c \uc774\uc6a9\ud558\uba74 MicroPython\uc73c\ub85c \ud3ec\ud305\ub41c Python \ucf54\uc5b4 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4. (\uc2ec\uc9c0\uc5b4 \ubcf4\ub4dc \ub808\ubca8\uc5d0\uc11c!!) \uba3c\uc800, WiFi\uac00 \uc5f0\uacb0\ub418\uc5b4 \uc788\uc5b4\uc57c \ud55c\ub2e4. \uc5f0\uacb0\uc774 \ub418\uace0 IP\uac00 \ud560\ub2f9\ub418\uc5c8\ub294\uc9c0 \ud655\uc778 \ud6c4, \uc704\uc640 \uac19\uc774 \uc2e4\ud589\ud558\uba74 \ubcf4\ub4dc\uc5d0 \uc9c1\uc811 Python \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ubc1b\uc544\uc628\ub2e4. \uc608\ub97c \ub4e4\uba74, MicroPython\uc73c\ub85c \ud3ec\ud305\ub41c Python \ucf54\uc5b4 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 https:\/\/github.com\/micropython\/micropython-lib\/\uc5d0\uc11c \ud655\uc778 \uac00\ub2a5\ud558\ub2e4.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"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,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[133],"tags":[134,145],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2wXSW-bi","jetpack-related-posts":[],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/700"}],"collection":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=700"}],"version-history":[{"count":2,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/700\/revisions"}],"predecessor-version":[{"id":702,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/700\/revisions\/702"}],"wp:attachment":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}