{"id":1483,"date":"2017-12-14T11:58:23","date_gmt":"2017-12-14T11:58:23","guid":{"rendered":"http:\/\/easycoding.tn\/?page_id=1483"},"modified":"2018-05-09T11:30:09","modified_gmt":"2018-05-09T11:30:09","slug":"station-mode","status":"publish","type":"page","link":"http:\/\/easycoding.tn\/index.php\/nodemcu\/tuniot-documentation\/iot\/station-mode\/","title":{"rendered":"Station mode"},"content":{"rendered":"<ul>\n<li><strong>Connect Network (Encrypted network)<\/strong>:<br \/>\nThis bloc will connect the board to an <span style=\"color: #ff9900;\">encrypted<\/span> Wifi network. You should specify the name of the WIFI network and the password. Be aware, the names are case sensitive.<strong><img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/ConnectNetwork.jpg\" width=\"504\" height=\"47\" \/><\/strong><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=HsGt7QrkJsc\">Video tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Connect Network (Open network)<\/strong>:<br \/>\nThis bloc will connect the board to an <span style=\"color: #ff9900;\">open<\/span> wifi network. You should specify the name of the WIFI network. Be aware, the name is case sensitive.<img loading=\"lazy\" class=\"alignright size-medium\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/ConnectNetworkSansPass.jpg\" width=\"319\" height=\"50\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=HsGt7QrkJsc\">Video Tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Static IP<\/strong>:<br \/>\nThis bloc will set the IP address of the board. In networking, there is 2 types of addresses: <a href=\"https:\/\/en.wikipedia.org\/wiki\/IP_address\">static and dynamic<\/a>. You need to specify the IP, the mask and the gateway. In case, one of these values are not set in the right way, you may have problems to communicate with the other boards or connect to the Internet.<img loading=\"lazy\" class=\"alignright size-medium\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/StaticIP.jpg\" width=\"166\" height=\"107\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=GwZM9mBzUtg\">Video tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Local IP<\/strong>:<br \/>\nThis bloc will return the local IP of the board.<br \/>\nReturn type: <strong><span style=\"color: #00ff00;\">String<\/span><\/strong>. <img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/LocalIP.jpg\" width=\"89\" height=\"33\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=GwZM9mBzUtg\">Video tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Gateway IP<\/strong>:<br \/>\nThis bloc will return the Gateway IP of the board.<br \/>\nReturn type: <span style=\"color: #00ff00;\"><strong>String<\/strong><\/span>.<img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/GatewayIp.jpg\" width=\"110\" height=\"36\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=GwZM9mBzUtg\">Video Tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Mask<\/strong>:<br \/>\nThis bloc will return the mask.<br \/>\nReturn type: <span style=\"color: #00ff00;\"><strong>String<\/strong><\/span>.<img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/Mask.jpg\" width=\"73\" height=\"34\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=GwZM9mBzUtg\">Video tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Host name<\/strong>:<br \/>\nThis bloc will return the host name of the board.<br \/>\nReturn type: <strong><span style=\"color: #00ff00;\">String<\/span><\/strong>.<img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/HostName.jpg\" width=\"104\" height=\"40\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=GwZM9mBzUtg\">Video tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Set host name<\/strong>:<br \/>\nThis bloc will set the host name to the board.<img loading=\"lazy\" class=\"alignright size-medium\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/SetHostName.jpg\" width=\"202\" height=\"50\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=GwZM9mBzUtg\">Video tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Disconnect<\/strong>:<br \/>\nThis bloc will disconnect from any WIFI network.<img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/Disconnect.jpg\" width=\"94\" height=\"36\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=HsGt7QrkJsc\">Video tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Station reconnect<\/strong>:<br \/>\nThis bloc will reconnect to the last connected WIFI network.<img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/StationReconnect.jpg\" width=\"135\" height=\"38\" \/><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Is connected<\/strong>:<br \/>\nReturns True or False if the board is connected to a WIFI network.<br \/>\nReturn type: <strong><span style=\"color: #00ff00;\">Boolean<\/span><\/strong>.<img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/IsConnected.jpg\" width=\"121\" height=\"35\" \/><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=HsGt7QrkJsc\">Video tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Client available<\/strong>:<br \/>\nReturns the number of bytes available for reading (that is, the amount of data that has been written to the client by the server it is connected to).<img loading=\"lazy\" class=\"size-medium alignright\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/ClientAvailable.jpg\" width=\"132\" height=\"41\" \/><br \/>\nReturn type: <span style=\"color: #00ff00;\"><strong>Number<\/strong><\/span>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Show MAC Address<\/strong>:<br \/>\nReturns the Mac Address of the board.<img loading=\"lazy\" class=\"alignright size-medium\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2018\/05\/ShowMacAddress.jpg\" width=\"161\" height=\"41\" \/><br \/>\nReturn type: <span style=\"color: #00ff00;\"><strong>String<\/strong><\/span>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Connect Network (Encrypted network): This bloc will connect the board to an encrypted Wifi network. You should specify the name&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1080,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1483"}],"collection":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/comments?post=1483"}],"version-history":[{"count":15,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1483\/revisions"}],"predecessor-version":[{"id":1650,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1483\/revisions\/1650"}],"up":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1080"}],"wp:attachment":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/media?parent=1483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}