An open API service indexing awesome lists of open source software.

https://github.com/aredarn/trackpro_esp

ESP8266/ESP32 code for GPS data sending via TCP (mainly for TrackPro mobile app)
https://github.com/aredarn/trackpro_esp

esp32 esp8266 gps-data gps-tracking

Last synced: 7 months ago
JSON representation

ESP8266/ESP32 code for GPS data sending via TCP (mainly for TrackPro mobile app)

Awesome Lists containing this project

README

          

This project demonstrates how to use an ESP8266 to act as a GPS data server. The device collects GPS data using a GPS module (Mateksys m10q) and streams it to connected clients over a WebSocket server. The ESP8266 operates in Access Point (AP) mode, allowing direct client connections without the need for an external Wi-Fi network.

Features:

- GPS Data Collection: Captures latitude, longitude, altitude, speed, number of satellites, and timestamp using the TinyGPS++ library.
- TCP Communication: Streams real-time GPS data to to a device with port 4201
- AP Mode: ESP8266 hosts its own Wi-Fi network for easy client connection.

Setup

Hardware Connections:
Connect the GPS module to the ESP8266 using pins D2 (GPIO4) for RX and D1 (GPIO5) for TX.
Ensure the GPS module's baud rate is set to 9600.

Dependencies:
Install the following Arduino libraries:
TinyGPS++
WebSockets

Wi-Fi Configuration:
Update the ssid and password variables in the code to set your desired Access Point credentials.

Flash the ESP8266:
Upload the code to the ESP8266 using the Arduino IDE.

Connect and Test:
Connect to the Wi-Fi network named ESP8266 (default).
Open a WebSocket client (e.g., a browser or WebSocket test tool) and connect to ws://192.168.4.1:81.

Tested with:

No1:
ESp8266 OLED with GY-GPS6MV2