title: Connecting ESP8266 (NodeMCU) with Android app (MIT APP inventor) especially the longitude and latitude from a gps module
body: <p>This is the value of latitude and longitude in my serial Arduino.</p>
  
  <p><img src="https://i.stack.imgur.com/JEqiI.png" alt="enter image description here">]<a href="https://i.stack.imgur.com/JEqiI.png" rel="nofollow noreferrer">1</a></p>
  
  <p>This is my example design in Mit App inventor
  <a href="https://i.stack.imgur.com/hilFk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hilFk.png" alt="enter image description here"></a></p>
  
  <p>This is the blocks of my design in Mit app
  <a href="https://i.stack.imgur.com/TDBYU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TDBYU.png" alt="enter image description here"></a></p>
  
  <p>Gps Code:</p>
  
  <pre><code>#include &lt;TinyGPS++.h&gt;
  #include &lt;SoftwareSerial.h&gt;
  
  static const int RXPin = 3, TXPin = 4;
  static const uint32_t GPSBaud = 9600;
  
  // The TinyGPS++ object
  TinyGPSPlus gps;
  
  // The serial connection to the GPS device
  SoftwareSerial ss(RXPin, TXPin);
  
  void setup(){
    Serial.begin(9600);
    ss.begin(GPSBaud);
  }
  
  void loop(){
    // This sketch displays information every time a new sentence is correctly encoded.
    while (ss.available() &gt; 0){
      gps.encode(ss.read());
      if (gps.location.isUpdated()){
        Serial.print("Latitude= "); 
        Serial.print(gps.location.lat(), 6);
        Serial.print(" Longitude= "); 
        Serial.println(gps.location.lng(), 6);
      }
    }
  }
  </code></pre>
  
  <p>Nodemcu Esp8266</p>
  
  <pre><code>#include &lt;ESP8266WiFi.h&gt;
  #include &lt;WiFiClient.h&gt; 
  #include &lt;ESP8266WebServer.h&gt;
  
  const char* host = "GPS_NodeMCU";
  const char* ssid = "GPS_BOT";
  
  ESP8266WebServer server(80);
  
  void setup() {
    Serial.begin(115200);
  
  
  // Connecting WiFi
  
    WiFi.mode(WIFI_AP);
    WiFi.softAP(ssid);
  // Starting WEB-server
  
       server.on ( "/", HTTP_handleRoot );
       server.onNotFound ( HTTP_handleRoot );
       server.begin();    
  
  }
  
  void loop() {
    server.handleClient();
     delay(50);
  }
  
  void HTTP_handleRoot(void) {
  
  if( server.hasArg("State") ){
         Serial.println(server.arg("State"));
    }
    server.send ( 200, "text/html", "" );
  }
  </code></pre>
  
  <p>How to send the value of latitude and longitude in my serial using Arduino to my Map in my android application created in Mit App. The connection is using nodemcu esp8266. </p>
  
  <p>Is it Possible to do?. Sorry, I'm just a beginner in the Arduino :) :)</p>