user38199: I hope I am posting this question in the right section.
I am making a Smart Home Project for my college semester finals. I am using an Atmega328p microcontroller along with an ESP8266 (Esp 01). The Atmega328p controls all the sensors and actuators and sends the data to Esp01 via serial communication.
I have created a web server on the Esp01 which I plan to access by creating an app using MIT App Inventor. My GET request is of the format "http://192.168.43.42/4" where the digit at the end is data I want to send to the server and the response I get from the server is of the format "12&0&34.8" where the '&' is used to separate different values.
My problem is , when I access the server from Chrome in my laptop I get the desired response but when I access it using the App , I get an error "Error 1101 :Cannot find the specified URL". The Esp01 is connecting to a hotspot from my phone and I have checked the IP assigned to the Esp01 to ensure my GET request is correct.
The code for Esp01 in Arduino IDE is here : https://gist.github.com/TheMagicSmoke/467d6227d670697464038056e22f302d
The blocks for the app made in App Inventor is below:


The GET request URL when entered from Chrome in laptop returns a blank page at first but upon refreshing Chrome I get the desired response I told earlier. And in the app , I have used a timer which queries the server with the same GET request every 2 seconds. But when I open the App the error keeps on popping up. Please suggest me a solution, I have googled this without any success.

user38199: I have found out the solution to this problem. The code that I had written in the Arduino IDE for the Esp8266 was not correct for handling the GET request.  It only accepted data as a simple Web Server and not as a HTTP server. I am posting the modified code below .
https://gist.github.com/TheMagicSmoke/adaae1e4d92f258c88184c8690e68f08

38199: <p>I hope I am posting this question in the right section.
I am making a Smart Home Project for my college semester finals. I am using an Atmega328p microcontroller along with an ESP8266 (Esp 01). The Atmega328p controls all the sensors and actuators and sends the data to Esp01 via serial communication.</p>

<p>I have created a web server on the Esp01 which I plan to access by creating an app using MIT App Inventor. My GET request is of the format "<a href="http://192.168.43.42/4" rel="nofollow noreferrer">http://192.168.43.42/4</a>" where the digit at the end is data I want to send to the server and the response I get from the server is of the format "12&amp;0&amp;34.8" where the '&amp;' is used to separate different values.</p>

<p>My problem is , when I access the server from Chrome in my laptop I get the desired response but when I access it using the App , I get an error "Error 1101 :Cannot find the specified URL". The Esp01 is connecting to a hotspot from my phone and I have checked the IP assigned to the Esp01 to ensure my GET request is correct.</p>

<p>The code for Esp01 in Arduino IDE is here : <a href="https://gist.github.com/TheMagicSmoke/467d6227d670697464038056e22f302d" rel="nofollow noreferrer">https://gist.github.com/TheMagicSmoke/467d6227d670697464038056e22f302d</a></p>

<p>The blocks for the app made in App Inventor is below:
<a href="https://i.stack.imgur.com/Q1RJX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q1RJX.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/hBwur.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hBwur.png" alt="enter image description here"></a></p>

<p>The GET request URL when entered from Chrome in laptop returns a blank page at first but upon refreshing Chrome I get the desired response I told earlier. And in the app , I have used a timer which queries the server with the same GET request every 2 seconds. But when I open the App the error keeps on popping up. Please suggest me a solution, I have googled this without any success.</p>
 38199: <p>I have found out the solution to this problem. The code that I had written in the Arduino IDE for the Esp8266 was not correct for handling the GET request.  It only accepted data as a simple Web Server and not as a HTTP server. I am posting the modified code below .</p>

<p><a href="https://gist.github.com/TheMagicSmoke/adaae1e4d92f258c88184c8690e68f08" rel="nofollow noreferrer">https://gist.github.com/TheMagicSmoke/adaae1e4d92f258c88184c8690e68f08</a></p>
