Page 1 of 1

latitude and longitude using esp32

Posted: Mon Jul 30, 2018 11:52 am
by hemant.chaudhari
Hello,

How to get latitude and longitude using esp32.Also tell me how to get public ip for my esp32

Re: latitude and longitude using esp32

Posted: Mon Jul 30, 2018 12:58 pm
by kolban
The most common way of retrieving your current geo-position is to attach a GPS receiver to your device. You could the write an app that would query the location. Obtaining your public IP address is going to be a function of how your device is connected to the network. Commonly, one connects to a WiFi access point that is connected to your cable/DSL modem. The public IP address is then that of the modem. There are services on the Internet that you can invoke and they will respond with the apparent return address that a response should be sent to. It is this that I would consider to be my public IP.

Re: latitude and longitude using esp32

Posted: Tue Jul 31, 2018 9:54 am
by Franco
You can also use the same principles as what described in this appnote. ttps://www.espressif.com/sites/default/files/d ... 266_en.pdf