gps - rhaidiz/bettercap GitHub Wiki
A module talking with GPS hardware on a serial interface.
Commands
command | description |
---|---|
gps on |
Start acquiring from the GPS hardware. |
gps off |
Stop acquiring from the GPS hardware. |
gps.show |
Show the last coordinates returned by the GPS hardware. |
Parameters
parameter | default | description |
---|---|---|
gps.device |
/dev/ttyUSB0 |
Serial device of the GPS hardware. |
gps.baudrate |
19200 |
Baud rate of the GPS serial device. |
Examples
Turn on GPS, wait for 5 seconds and then show the current coordinates:
> gps on; sleep 5; gps.show