Skip to content

SiriusBrightstar/GPS-MQTT-ESP8266

Repository files navigation

GPS-MQTT-ESP8266

Badge Badge2

Couple of MQTT Programs I wrote for a Project. Uses ESP8266 (Tested on NodeMCU) & uBlox NEO-6m GPS Module. This repo contains:

  • Program to send GPS data over MQTT.
  • Program to test your GPS module.
  • JavaScript Program to retrive the GPS data from MQTT Broker.

To test locally you can use Mosquitto MQTT Broker (https://mosquitto.org/). Instructions for Linux:

sudo apt update
sudo apt install -y mosquitto mosquitto-clients

To make Mosquitto Service automatically start on Startup

sudo systemctl enable mosquitto.service

To check install version, status

sudo mosquitto -v

If it says "Error: Address already in use" then it's properly installed.

To check system's IP Address and use the XXX:XXX:XXX:XXX (IPv4) address.

hostname -I

To get Latitude:

mosquitto_sub -t GPS/Latitude

To get Longitude:

mosquitto_sub -t GPS/Longitude

Node-RED Flow

NodeRED_Flow

About

Couple of MQTT Codes I wrote for a Project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published