MQTT stands for MQ Telemetry Transport. It is a publish/subscribe, extremely simple and lightweight messaging protocol, designed for constrained devices and low-bandwidth, high-latency or unreliable networks. The design principles are to minimise network bandwidth and device resource requirements whilst also attempting to ensure reliability and some degree of assurance of delivery. These principles also turn out to make the protocol ideal of the emerging “machine-to-machine” (M2M) or “Internet of Things” world of connected devices, and for mobile applications where bandwidth and battery power are at a premium.
OwnTracks allows you to keep track of your own location. You can build your private location diary or share it with your family and friends. OwnTracks is open-source and uses open protocols for communication so you can be sure your data stays secure and private.
This project demonstrates the use of MQTT as a lightweight message protocol to track gps information and visualize it on a Google map.
git clone https://github.com/frensley/springboot-mqtt-demo.git
cd springboot-mqtt-demo
./gradlew build
./gradlew bootRun
- Use your browser to open http://localhost:8080
- Download OwnTracks for your mobile device
- Access settings menu
- Deactivate TLS
- Deactivate Auth
- Enter the IP address or Host name of the machine in the Host field
- Enter a unique name in the DeviceID field
To publish Owntracks location use Location Monitoring Mode Menu (second icon from left on top of OwnTracks tab). Location publish can be done using the "Publish Now" or "Move Mode" selections.
- More unit testing
- Documentation
- Better UI experience
Better broker/messaging solution (ActiveMQ)