{"id":3252,"date":"2020-04-30T17:52:33","date_gmt":"2020-04-30T17:52:33","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=3252"},"modified":"2020-10-08T08:33:48","modified_gmt":"2020-10-08T08:33:48","slug":"configuring-wifi","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/network-settings\/configuring-wifi","title":{"rendered":"Configuring WiFi"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Manually Configuring WiFi<\/h4>\n\n\n\n<p>The file \/etc\/wpa_supplicant\/wpa_supplicant.conf will be created\/modified when setting up WiFi (it is referenced from the&nbsp;\/etc\/network\/interfaces file that is no longer to be edited).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nsudo nano \/etc\/wpa_supplicant\/wpa_supplicant.conf\n<\/code><\/pre>\n\n\n\n<p>You can find details of what it needs to contain&nbsp;<a href=\"https:\/\/linux.die.net\/man\/5\/wpa_supplicant.conf\">here<\/a>.<\/p>\n\n\n\n<p>An example network to add to the bottom of the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n#SPECIFY OUR WIFI NETWORK\nnetwork={\n    ssid=\"MyWiFiNetworkName\"\n    scan_ssid=1\n    key_mgmt=WPA-PSK\n    psk=\"MySecretPassphrase\"\n}<\/code><\/pre>\n\n\n\n<p>After making changes reset the interface &#8211; see <a href=\"\/pi\/pi-operating-systems\/raspbian\/network-settings\/reset-network-interface\">here<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">SSID Unicode Characters<\/h4>\n\n\n\n<p>Unicode characters are permitted in a SSID and the wpa_supplicant.conf SSID field requires Unicode characters in its string if there are any used, (it will not convert from \\x## to unicode when using the field).<\/p>\n\n\n\n<p>This is a problem, for instance the iPhone will have a SSID of &#8220;Adam\\xE2\\x80\\x99s iPhone&#8221; for &#8220;Adam\u2019s iPhone&#8221;.<br>When performing &#8220;sudo iwlist wlan0 scan&#8221; you will get \\x values returned as it returns using UTF8 format.  So you have to convert them somehow.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Hex SSID<\/h5>\n\n\n\n<p>SSID can be specified in hex.  In wpa_supplicant.conf if the SSID is surrounded by quotes &#8220;&#8221; then its dealt with as a string, but otherwise it is dealt with as 2 digit hex characters.  An example of converting a string is <a href=\"https:\/\/raspberry-projects.com\/pi\/programming-in-c\/strings\/stringstream\/examples\/utf8-string-with-unicode-to-hex\">shown here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Manually Configuring WiFi The file \/etc\/wpa_supplicant\/wpa_supplicant.conf will be created\/modified when setting up WiFi (it is referenced from the&nbsp;\/etc\/network\/interfaces file that is no longer to be edited). You can find details of what it needs to contain&nbsp;here. An example network to add to the bottom of the file: After making changes reset the interface &#8211; see [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-3252","post","type-post","status-publish","format-standard","hentry","category-network-settings"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=3252"}],"version-history":[{"count":3,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3252\/revisions"}],"predecessor-version":[{"id":3455,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3252\/revisions\/3455"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=3252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=3252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=3252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}