Why is GPSD better than BU353?
- GPSD component supports all GPSD-compatible GPS units, including BU353
- GPSD component doesn't read from devices directly, but uses GPSD client and server for this prupose (so it is more reliable for concurrent access use cases)
- GPSD Time-Position-Velocity objects can be accessed to receive the detailed GPS information (like a current speed of the device), not only GPS location coordinates
- you can use GPSD component to read the GPS data from the remote device running GPSD server
BU353 to GPSD migration
GPSD component is really a drop in replacement for BU353 component. You can simply change your route from...
from("gps-bu353:current-position").
convertBodyTo(String.class).
to("file:///var/gps-coordinates");
...to...from("gpsd:current-position").
convertBodyTo(String.class).
to("file:///var/gps-coordinates");
Spot the difference ;) .
No comments:
Post a Comment