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)
- Host: GitHub
- URL: https://github.com/aredarn/trackpro_esp
- Owner: Aredarn
- Created: 2024-12-20T08:35:19.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-24T12:30:12.000Z (7 months ago)
- Last Synced: 2025-03-24T13:23:50.396Z (7 months ago)
- Topics: esp32, esp8266, gps-data, gps-tracking
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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++
WebSocketsWi-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