{"id":31682,"date":"2020-04-23T22:27:15","date_gmt":"2020-04-23T14:27:15","guid":{"rendered":"\/blog\/?p=31682"},"modified":"2020-04-24T09:08:12","modified_gmt":"2020-04-24T01:08:12","slug":"updates-for-wio-terminal-network-connectivity","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/","title":{"rendered":"Updates for Wio Terminal&#8217;s Network Connectivity: What does &#8220;Wio&#8221; Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet"},"content":{"rendered":"\n<p>Today&#8217;s update for Wio Terminal is about one of its highlight features &#8211;  its <strong>reliable &amp; powerful network connectivity<\/strong>! In this post, we will talk about:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>What does &#8220;Wio&#8221; Stand for<\/li><li>A Brief Introduction of Wio Terminal&#8217;s Wireless Core: Realtek RTL8720DN<\/li><li>How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What does &#8220;Wio&#8221; Stand for<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"831\" height=\"477\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/wio-cover.png\" alt=\"Wio platform, implement IoT the simple way\" class=\"wp-image-26445\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/wio-cover.png 831w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/wio-cover-300x172.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/wio-cover-768x441.png 768w\" sizes=\"(max-width: 831px) 100vw, 831px\" \/><\/figure>\n\n\n\n<p>Before we start, many of you might have a quick question: what does the &#8220;Wio&#8221; of Wio Terminal ever mean? <\/p>\n\n\n\n<p>It is an abbreviation of &#8220;Wireless input and output&#8221;, a platform including hardware and software created by Seeed, aiming to simplify IoT development for makers.  With the help of the Wio Family, even beginners can build his\/her own IoT application within 5 minutes, no hardware programming, no breadboard, no jumper wires, no soldering.&nbsp; <\/p>\n\n\n\n<p>Wio Terminal is the newest member of the Wio family. You must have noticed that it is quite different from its elder brothers, not a single embedded functional module but <strong>a simple and tiny device with highly-integrated design<\/strong>, packing multiple functions in a 72 x 57 x 12mm tiny but stylish enclosure. Together with its reliable wireless connectivity, setting up an IoT project is simpler than ever. <\/p>\n\n\n\n<p>You can use Wio Terminal to make demos <strong>showing real-time data<\/strong> from the internet, for example, the live data of local weather or currency exchange rates., etc., without too many hard works.  It even has built-in magnets and 2 mounting holes so you can fix it at almost any place you like as a monitor or dashboard. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"640\" height=\"368\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/04\/wt-Github.gif\" alt=\"\" class=\"wp-image-31686\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">A Brief Introduction of Wio Terminal&#8217;s Wireless Core: Realtek RTL8720DN<\/h2>\n\n\n\n<p>To empower Wio Terminal with powerful wireless connectivity, we adopted Realtek RTL8720DN, which can support both <strong>BLE \/ BLE 5.0<\/strong> and <strong>Dual-Band 2.4Ghz \/ 5Ghz Wi-Fi<\/strong>, providing the backbone for IoT projects. <\/p>\n\n\n\n<p>Here at Seeed, we also provide a <a href=\"https:\/\/www.seeedstudio.com\/Realtek8720DN-2-4G-5G-Dual-Bands-Wireless-and-BLE5-0-Combo-Module-p-4442.html\">Realtek RTL8720DN 2.4G\/5G Dual Bands Wireless and BLE5.0 Combo Module<\/a> for you. It is worth saying that this little module can support WiFi 5G and Bluetooth Low Energy 5.0 as well. With the main chip RTL8720DN, it can be regarded as an SoC for the WiFi and Bluetooth application with typical SBCs.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.14.50.png\" alt=\"\" class=\"wp-image-31688\" width=\"484\" height=\"306\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.14.50.png 968w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.14.50-300x190.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.14.50-768x486.png 768w\" sizes=\"(max-width: 484px) 100vw, 484px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet<\/h2>\n\n\n\n<p>Here comes the most important part: How to use Wio Terminal to obtain data from the internet? Today we will introduce how to use Wio Terminal to access to\u00a0<strong>HTTPS<\/strong>\u00a0server and grab live data from the internet. In this demo, Wio Terminal is used to obtain data from <a href=\"https:\/\/github.com\/micropython\/micropython\">MicroPython&#8217;s Github repository<\/a> and displayed on its LCD screen. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1030\" height=\"66\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53485.42.01-1030x66.png\" alt=\"\" class=\"wp-image-31691\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53485.42.01-1030x66.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53485.42.01-300x19.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53485.42.01-768x49.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53485.42.01-1536x98.png 1536w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53485.42.01-1024x66.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53485.42.01.png 2000w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.43.35-1030x892.png\" alt=\"\" class=\"wp-image-31693\" width=\"515\" height=\"446\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.43.35-1030x892.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.43.35-300x260.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.43.35-768x665.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.43.35-1024x887.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/\u622a\u5c4f2020-04-23\u4e0b\u53487.43.35.png 1242w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/figure><\/div>\n\n\n\n<p>If you have your own Github repository, you can obtain data from yours, and attract Wio Terminal to your desktop so that you can know how many people star or fork your code without opening the page. Sounds quite excited for a maker, right? Of course, you can implement the Demo to other API such as grabbing weather information, Youtube Stats and etc. The possibilities are endless!<\/p>\n\n\n\n<p>If you are a beginner to Wio Terminal, we have prepared many <a href=\"http:\/\/wiki.seeedstudio.com\/Wio-Terminal-Getting-Started\/\">documents<\/a> for you. Make sure you have <a href=\"http:\/\/wiki.seeedstudio.com\/Wio-Terminal-Network-Overview\/\">updated the latest firmware<\/a> for the Wireless Core Realtek RTL8720 on Wio Terminal before getting started with this demo. If you are not sure about how to configure Wi-Fi connectivity on Wio Terminal, check our detailed tutorial <a href=\"http:\/\/wiki.seeedstudio.com\/Wio-Terminal-Wi-Fi\/\">here<\/a>. <\/p>\n\n\n\n<p>Let&#8217; s get started!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"368\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/04\/wt-wifi.gif\" alt=\"\" class=\"wp-image-31685\"\/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"part-list\">Hardware Requirement<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.seeedstudio.com\/Wio-Terminal-p-4509.html\">Wio Terminal<\/a><\/li><li><a href=\"https:\/\/www.seeedstudio.com\/Wio-Terminal-Chassis-Battery-p-4516.html\">Wio Terminal Battery Chassis<\/a><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"arduino-libraries-needed\">Arduino libraries needed<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Install the LCD screen Library&nbsp;<code>Seeed_Arduino_LCD<\/code>, please visit&nbsp;<a href=\"http:\/\/wiki.seeedstudio.com\/Wio-Terminal-LCD-Overview\/\">Wio Terminal LCD<\/a>&nbsp;for more information.<\/li><li>Visit the&nbsp;<a href=\"https:\/\/github.com\/bblanchon\/ArduinoJson\">ArduinoJson<\/a>&nbsp;repositories and download the entire repo to your local drive.<ul><li>Now, the ArduinoJson library can be installed to the Arduino IDE. Open the Arduino IDE, and click&nbsp;<code>sketch<\/code>&nbsp;-&gt;&nbsp;<code>Include Library<\/code>&nbsp;-&gt;&nbsp;<code>Add .ZIP Library<\/code>, and choose the&nbsp;<code>ArduinoJson<\/code>&nbsp;file that you&#8217;ve have just downloaded.<\/li><\/ul><\/li><li>For more information about Https connection, please visit&nbsp;<a href=\"http:\/\/wiki.seeedstudio.com\/Wio-Terminal-Wi-Fi\/#wi-fi-https-connection-example-code\"><strong>here<\/strong><\/a>.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"arduino-instructions\">Arduino Instructions<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Download the&nbsp;<a href=\"https:\/\/files.seeedstudio.com\/wiki\/Wio-Terminal\/res\/Free_Fonts.h\"><code>Free_Fonts.h<\/code><\/a>&nbsp;header file so that can use abbreviations for the free fonts included in the LCD library. Please make sure to put this header file in the same location as the Arduino Sketch.<\/li><li>Download the Complete code&nbsp;<a href=\"https:\/\/files.seeedstudio.com\/wiki\/Wio-Terminal\/res\/GitHubStats.zip\">here<\/a>&nbsp;or copy the following.<\/li><li>Upload the code.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"complete-code\">Complete Code<\/h3>\n\n\n\n<p><strong>Note:<\/strong>&nbsp;Change the&nbsp;<code>ssid<\/code>&nbsp;and&nbsp;<code>password<\/code>&nbsp;to your Network Wi-Fi.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;WiFiClientSecure.h>\n#include &lt;ArduinoJson.h>\n#include\"Free_Fonts.h\"\n#include\"TFT_eSPI.h\"\nTFT_eSPI tft;\n\nconst char* ssid     = \"yourNetworkName\";\nconst char* password = \"yourNetworkPassword\";\n\n\/\/29*27\nconst unsigned char watchIMG[] = {\n  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \n  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x00, \n  0x00, 0xFC, 0x07, 0x00, 0x00, 0xFF, 0x1F, 0x00, 0x80, 0x1F, 0x3F, 0x00, \n  0xC0, 0x07, 0x7C, 0x00, 0xE0, 0x03, 0xF8, 0x00, 0xF0, 0xE1, 0xF0, 0x01, \n  0xF8, 0xF1, 0xF1, 0x01, 0xF8, 0xF8, 0xF1, 0x03, 0xFC, 0xF8, 0xF1, 0x03, \n  0xF8, 0xF0, 0xF1, 0x03, 0xF0, 0xF1, 0xF0, 0x01, 0xF0, 0x01, 0xF8, 0x00, \n  0xE0, 0x03, 0x78, 0x00, 0xC0, 0x07, 0x3E, 0x00, 0x80, 0xFF, 0x1F, 0x00, \n  0x00, 0xFE, 0x0F, 0x00, 0x00, 0xF8, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, \n  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \n  };\n\nconst unsigned char starIMG[] = {\n  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, \n  0x00, 0xC0, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x00, 0xE0, 0x01, 0x00, \n  0x00, 0xF0, 0x01, 0x00, 0x00, 0xF0, 0x03, 0x00, 0x00, 0xF8, 0x03, 0x00, \n  0x00, 0xF8, 0x07, 0x00, 0x00, 0xFE, 0x0F, 0x00, 0xFE, 0xFF, 0xFF, 0x1F, \n  0xFE, 0xFF, 0xFF, 0x0F, 0xFC, 0xFF, 0xFF, 0x07, 0xF8, 0xFF, 0xFF, 0x03, \n  0xF0, 0xFF, 0xFF, 0x01, 0xC0, 0xFF, 0xFF, 0x00, 0x80, 0xFF, 0x7F, 0x00, \n  0x00, 0xFF, 0x3F, 0x00, 0x80, 0xFF, 0x3F, 0x00, 0x80, 0xFF, 0x3F, 0x00, \n  0x80, 0xFF, 0x3F, 0x00, 0x80, 0xFF, 0x7F, 0x00, 0x80, 0xBF, 0x7F, 0x00, \n  0xC0, 0x1F, 0x7E, 0x00, 0xC0, 0x07, 0x78, 0x00, 0xC0, 0x01, 0x70, 0x00, \n  0x40, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \n  };\n\nconst unsigned char forkIMG[] = {\n  0xF8, 0x00, 0x00, 0x00, 0xFE, 0x03, 0x00, 0x00, 0x0F, 0x07, 0x00, 0x01, \n  0x07, 0x07, 0xE0, 0x0F, 0x07, 0x07, 0x78, 0x1E, 0x9E, 0x07, 0x38, 0x38, \n  0xFC, 0x01, 0x38, 0x38, 0xF8, 0x00, 0x38, 0x3C, 0xF8, 0x00, 0xF0, 0x1F, \n  0xF8, 0x00, 0xE0, 0x07, 0xF8, 0x00, 0xC0, 0x07, 0xF8, 0x00, 0xE0, 0x07, \n  0xF8, 0x00, 0xE0, 0x07, 0xF8, 0x00, 0xF8, 0x03, 0xF8, 0x00, 0xFE, 0x01, \n  0xF8, 0xE0, 0xFF, 0x00, 0xF8, 0xFF, 0x7F, 0x00, 0xF8, 0xFF, 0x1F, 0x00, \n  0xF8, 0xFF, 0x03, 0x00, 0xF8, 0x1F, 0x00, 0x00, 0xF8, 0x03, 0x00, 0x00, \n  0xF8, 0x01, 0x00, 0x00, 0xF8, 0x00, 0x00, 0x00, 0xFC, 0x01, 0x00, 0x00, \n  0x9E, 0x07, 0x00, 0x00, 0x07, 0x07, 0x00, 0x00, 0x07, 0x07, 0x00, 0x00, \n  0x0F, 0x07, 0x00, 0x00, 0xFE, 0x03, 0x00, 0x00, 0xF8, 0x00, 0x00, 0x00, \n  };\n\nconst char*  server = \"api.github.com\";  \/\/ Server URL\n\nconst char* test_root_ca = \\\n                            \"-----BEGIN CERTIFICATE-----\\n\"\n                            \"MIIEsTCCA5mgAwIBAgIQBOHnpNxc8vNtwCtCuF0VnzANBgkqhkiG9w0BAQsFADBs\\n\"\n                            \"MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\n\"\n                            \"d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j\\n\"\n                            \"ZSBFViBSb290IENBMB4XDTEzMTAyMjEyMDAwMFoXDTI4MTAyMjEyMDAwMFowcDEL\\n\"\n                            \"MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3\\n\"\n                            \"LmRpZ2ljZXJ0LmNvbTEvMC0GA1UEAxMmRGlnaUNlcnQgU0hBMiBIaWdoIEFzc3Vy\\n\"\n                            \"YW5jZSBTZXJ2ZXIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC2\\n\"\n                            \"4C\/CJAbIbQRf1+8KZAayfSImZRauQkCbztyfn3YHPsMwVYcZuU+UDlqUH1VWtMIC\\n\"\n                            \"Kq\/QmO4LQNfE0DtyyBSe75CxEamu0si4QzrZCwvV1ZX1QK\/IHe1NnF9Xt4ZQaJn1\\n\"\n                            \"itrSxwUfqJfJ3KSxgoQtxq2lnMcZgqaFD15EWCo3j\/018QsIJzJa9buLnqS9UdAn\\n\"\n                            \"4t07QjOjBSjEuyjMmqwrIw14xnvmXnG3Sj4I+4G3FhahnSMSTeXXkgisdaScus0X\\n\"\n                            \"sh5ENWV\/UyU50RwKmmMbGZJ0aAo3wsJSSMs5WqK24V3B3aAguCGikyZvFEohQcft\\n\"\n                            \"bZvySC\/zA\/WiaJJTL17jAgMBAAGjggFJMIIBRTASBgNVHRMBAf8ECDAGAQH\/AgEA\\n\"\n                            \"MA4GA1UdDwEB\/wQEAwIBhjAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIw\\n\"\n                            \"NAYIKwYBBQUHAQEEKDAmMCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5kaWdpY2Vy\\n\"\n                            \"dC5jb20wSwYDVR0fBEQwQjBAoD6gPIY6aHR0cDovL2NybDQuZGlnaWNlcnQuY29t\\n\"\n                            \"L0RpZ2lDZXJ0SGlnaEFzc3VyYW5jZUVWUm9vdENBLmNybDA9BgNVHSAENjA0MDIG\\n\"\n                            \"BFUdIAAwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cuZGlnaWNlcnQuY29tL0NQ\\n\"\n                            \"UzAdBgNVHQ4EFgQUUWj\/kK8CB3U8zNllZGKiErhZcjswHwYDVR0jBBgwFoAUsT7D\\n\"\n                            \"aQP4v0cB1JgmGggC72NkK8MwDQYJKoZIhvcNAQELBQADggEBABiKlYkD5m3fXPwd\\n\"\n                            \"aOpKj4PWUS+Na0QWnqxj9dJubISZi6qBcYRb7TROsLd5kinMLYBq8I4g4Xmk\/gNH\\n\"\n                            \"E+r1hspZcX30BJZr01lYPf7TMSVcGDiEo+afgv2MW5gxTs14nhr9hctJqvIni5ly\\n\"\n                            \"\/D6q1UEL2tU2ob8cbkdJf17ZSHwD2f2LSaCYJkJA69aSEaRkCldUxPUd1gJea6zu\\n\"\n                            \"xICaEnL6VpPX\/78whQYwvwt\/Tv9XBZ0k7YXDK\/umdaisLRbvfXknsuvCnQsH6qqF\\n\"\n                            \"0wGjIChBWUMo0oHjqvbsezt3tkBigAVBRQHvFwY+3sAzm2fTYS5yh+Rp\/BIAV0Ae\\n\"\n                            \"cPUeybQ=\\n\"\n                            \"-----END CERTIFICATE-----\\n\";\n\n\/\/ You can use x.509 client certificates if you want\n\/\/const char* test_client_key = \"\";   \/\/to verify the client\n\/\/const char* test_client_cert = \"\";  \/\/to verify the client\n\nString github_data;\n\nWiFiClientSecure client;\n\nvoid setup() {\n    \/\/Initialize serial and wait for port to open:\n    Serial.begin(115200);\n    delay(100);\n\n    Serial.print(\"Attempting to connect to SSID: \");\n    Serial.println(ssid);\n    WiFi.begin(ssid, password);\n\n    tft.begin();\n    tft.setRotation(3);\n    tft.fillScreen(TFT_BLACK);\n    tft.setTextSize(2);\n    tft.setCursor((320 - tft.textWidth(\"Connecting to Wi-Fi..\"))\/2, 120);\n    tft.print(\"Connecting to Wi-Fi..\");\n\n    \/\/ attempt to connect to Wifi network:\n    while (WiFi.status() != WL_CONNECTED) {\n        Serial.print(\".\");\n        \/\/ wait 1 second for re-trying\n        delay(1000);\n    }\n\n    Serial.print(\"Connected to \");\n    Serial.println(ssid);\n\n    tft.fillScreen(TFT_BLACK);\n    tft.setCursor((320 - tft.textWidth(\"Connected!\"))\/2, 120);\n    tft.print(\"Connected!\");\n\n    getData();\n}\n\nvoid loop() {\n    \/\/ do nothing\n}\n\nvoid getData() {\n    client.setCACert(test_root_ca);\n  \/\/client.setCertificate(test_client_key); \/\/ for client verification\n  \/\/client.setPrivateKey(test_client_cert); \/\/ for client verification\n\n    tft.fillScreen(TFT_BLACK);\n    tft.setCursor((320 - tft.textWidth(\"Conectting to Server..\"))\/2, 120);\n    tft.print(\"Connecting to Server..\");\n\n    Serial.println(\"\\nStarting connection to server...\");\n    if (!client.connect(server, 443)) {\n        Serial.println(\"Connection failed!\");\n        tft.fillScreen(TFT_BLACK);\n        tft.setCursor((320 - tft.textWidth(\"Connection failed!\"))\/2, 120);\n        tft.print(\"Connection failed!\");\n    } else {\n        Serial.println(\"Connected to server!\");\n        tft.fillScreen(TFT_BLACK);\n        tft.setCursor((320 - tft.textWidth(\"Connected to Server!\"))\/2, 120);\n        tft.print(\"Connected to Server!\");\n\n        \/\/ Make a HTTP request:\n        client.println(\"GET https:\/\/api.github.com\/repos\/micropython\/micropython HTTP\/1.0\");\n        client.println(\"Host: api.github.com\");\n        client.println(\"User-Agent: Seeed-Studio\");\n        client.println(\"Connection: close\");\n        client.println();\n\n        while (client.connected()) {\n            String line = client.readStringUntil('\\n');\n            if (line == \"\\r\") {\n                Serial.println(\"headers received\");\n                break;\n            }\n        }\n\n        while(client.available())\n        {\n          String line = client.readStringUntil('\\r');\n          github_data = line;\n        }\n        \/\/Serial.println(github_data);\n        client.stop();\n        Serial.println(\"closing connection\");          \n    }\n\n    \/\/ArduinoJson to parse data, plesae check ArduinoJson for more info\n    const size_t capacity = 2*JSON_OBJECT_SIZE(18) + JSON_OBJECT_SIZE(77) + 6050;\n    DynamicJsonDocument doc(capacity);\n    deserializeJson(doc, github_data);\n\n    int subscribers_count = doc[\"subscribers_count\"];\n    int forks = doc[\"forks\"];\n    int stargazers_count = doc[\"stargazers_count\"];\n\n    Serial.println(subscribers_count);\n    Serial.println(forks);\n    Serial.println(stargazers_count);\n\n    \/\/TFT SCREEN SESSION\n    tft.setFreeFont(FSS9);\n    tft.setTextSize(1);\n    tft.setTextColor(TFT_WHITE);\n    tft.fillScreen(TFT_BLACK);\n    tft.drawString(\"MicroPython Github\",20,10);\n    tft.drawFastHLine(185,18,120 ,TFT_RED);\n    tft.drawFastHLine(185,19,120 ,TFT_RED);\n    tft.drawFastHLine(185,20,120 ,TFT_RED);\n    tft.drawFastHLine(10,33,300 ,TFT_NAVY);\n    tft.drawFastHLine(10,34,300 ,TFT_NAVY);\n    tft.drawFastHLine(10,35,300 ,TFT_NAVY);\n\n    tft.drawXBitmap(20,60, watchIMG, 29, 27, TFT_WHITE);\n    tft.drawXBitmap(20,120, starIMG, 30, 30, TFT_WHITE);\n    tft.drawXBitmap(20,180, forkIMG, 30, 30, TFT_WHITE);\n\n    tft.setFreeFont(FMB9);\n    tft.drawString(\"Watchers: \",60, 68);\n    tft.drawString(\"Stars: \",60, 128);\n    tft.drawString(\"Forks: \",60, 188);\n\n    tft.drawNumber(subscribers_count, 165, 68);\n    tft.drawNumber(stargazers_count, 130, 128);\n    tft.drawNumber(forks, 130, 188);\n}<\/code><\/pre>\n\n\n\n<p>You can find more awesome demos with detailed tutorials at our <a href=\"http:\/\/wiki.seeedstudio.com\/Wio-Terminal-Reading-Github\/\">wiki<\/a>. Stay tuned with us and know more updates about Wio Terminal!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s update for Wio Terminal is about one of its highlight features &#8211; its reliable<\/p>\n","protected":false},"author":3487,"featured_media":31686,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[75,1937,3003],"class_list":["post-31682","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-open-source-hardware","tag-wio","tag-wio-terminal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Updates for Wio Terminal&#039;s Network Connectivity: What does &quot;Wio&quot; Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet - Latest News from Seeed Studio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Updates for Wio Terminal&#039;s Network Connectivity: What does &quot;Wio&quot; Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"Today&#8217;s update for Wio Terminal is about one of its highlight features &#8211; its reliable\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-23T14:27:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-24T01:08:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"368\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Serene\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Serene\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/\",\"name\":\"Updates for Wio Terminal's Network Connectivity: What does \\\"Wio\\\" Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif\",\"datePublished\":\"2020-04-23T14:27:15+00:00\",\"dateModified\":\"2020-04-24T01:08:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/0102457b277e33e4cdb544dd3ec2eab5\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#primaryimage\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif\",\"contentUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif\",\"width\":640,\"height\":368},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Updates for Wio Terminal&#8217;s Network Connectivity: What does &#8220;Wio&#8221; Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/0102457b277e33e4cdb544dd3ec2eab5\",\"name\":\"Serene\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/67d0ba8df1892d2ff8fd9057bbe8caf4?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/67d0ba8df1892d2ff8fd9057bbe8caf4?s=96&r=g\",\"caption\":\"Serene\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/serene\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Updates for Wio Terminal's Network Connectivity: What does \"Wio\" Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet - Latest News from Seeed Studio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/","og_locale":"en_US","og_type":"article","og_title":"Updates for Wio Terminal's Network Connectivity: What does \"Wio\" Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet - Latest News from Seeed Studio","og_description":"Today&#8217;s update for Wio Terminal is about one of its highlight features &#8211; its reliable","og_url":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2020-04-23T14:27:15+00:00","article_modified_time":"2020-04-24T01:08:12+00:00","og_image":[{"width":640,"height":368,"url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif","type":"image\/gif"}],"author":"Serene","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Serene","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/","url":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/","name":"Updates for Wio Terminal's Network Connectivity: What does \"Wio\" Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#primaryimage"},"thumbnailUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif","datePublished":"2020-04-23T14:27:15+00:00","dateModified":"2020-04-24T01:08:12+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/0102457b277e33e4cdb544dd3ec2eab5"},"breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#primaryimage","url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif","contentUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif","width":640,"height":368},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/04\/23\/updates-for-wio-terminal-network-connectivity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Updates for Wio Terminal&#8217;s Network Connectivity: What does &#8220;Wio&#8221; Stand For, A Brief Introduction of Realtek RTL8720DN, and How to Connect Wio Terminal to Wi-Fi and Obtain Data from the Internet"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/0102457b277e33e4cdb544dd3ec2eab5","name":"Serene","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/67d0ba8df1892d2ff8fd9057bbe8caf4?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/67d0ba8df1892d2ff8fd9057bbe8caf4?s=96&r=g","caption":"Serene"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/serene\/"}]}},"modified_by":"Serene","views":4387,"featured_image_urls":{"full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"thumbnail":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github-80x80.gif",80,80,true],"medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github-300x173.gif",300,173,true],"medium_large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"1536x1536":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"2048x2048":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"visody_icon":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",32,18,false],"magazine-7-slider-full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"magazine-7-slider-center":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"magazine-7-featured":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"magazine-7-medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false],"magazine-7-medium-square":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/04\/wt-Github.gif",640,368,false]},"author_info":{"display_name":"Serene","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/serene\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/31682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/3487"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=31682"}],"version-history":[{"count":14,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/31682\/revisions"}],"predecessor-version":[{"id":31714,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/31682\/revisions\/31714"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media\/31686"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=31682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=31682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=31682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}