{"id":2014,"date":"2020-06-04T20:17:35","date_gmt":"2020-06-04T19:17:35","guid":{"rendered":"http:\/\/easycoding.tn\/?page_id=2014"},"modified":"2020-06-04T20:18:50","modified_gmt":"2020-06-04T19:18:50","slug":"web-server-page-error","status":"publish","type":"page","link":"http:\/\/easycoding.tn\/index.php\/nodemcu\/web-server-page-error\/","title":{"rendered":"Web server page error."},"content":{"rendered":"<p>During the last period, a lot of TUNIOT users reported an issue with the Web server part.<\/p>\n<p>Although the code seems to be correct and the board was connected to the WIFI page, when you access the server, there is no page.<\/p>\n<p>I understood at that time that the problem was a version problem and I asked to use a specific version 2.4.0-rc2. Now, I understood the problem and this is how to fix it:<\/p>\n<ul>\n<li>If you want to keep your version and you don&#8217;t want to change any thing, in your web server, add the block client stop after the web server answer block.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone \" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2020\/06\/ClientStop1.jpg\" width=\"358\" height=\"354\" \/><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium\" src=\"http:\/\/easycoding.tn\/wp-content\/uploads\/2020\/06\/ClientStop2.jpg\" width=\"361\" height=\"450\" \/><\/p>\n<ul>\n<li>In case you want to upgrade to the last version, delete your current version by following the end of <a href=\"https:\/\/www.youtube.com\/watch?v=eXxF-dWFZCc\">this video<\/a>. And install one more time. Don&#8217;t forget to delete the folder of your current version. You will have a compile error. All the programs in the video will work fine.<\/li>\n<\/ul>\n<p>What I did is:<\/p>\n<p>I deleted the client.stop() instruction from the genereted code of the answer block. And created a new one. In the new versions, you do not need that instruction to handle the HTTP request.<\/p>\n<p>In the end, I wanted to say that working with the last versions is much better.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During the last period, a lot of TUNIOT users reported an issue with the Web server part. Although the code&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":950,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/2014"}],"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=2014"}],"version-history":[{"count":1,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/2014\/revisions"}],"predecessor-version":[{"id":2017,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/2014\/revisions\/2017"}],"up":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/950"}],"wp:attachment":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/media?parent=2014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}