mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: parsing gps GPGGA messages other than just GNGGA (fixes #473)
This commit is contained in:
parent
4e860c73fe
commit
963840915b
2 changed files with 24 additions and 8 deletions
|
@ -73,6 +73,11 @@ func (mm ModuleList) MarshalJSON() ([]byte, error) {
|
|||
return json.Marshal(mods)
|
||||
}
|
||||
|
||||
type GPS struct {
|
||||
GNGGA nmea.GNGGA
|
||||
GPGGA nmea.GPGGA
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
Options core.Options `json:"options"`
|
||||
Interface *network.Endpoint `json:"interface"`
|
||||
|
@ -85,7 +90,7 @@ type Session struct {
|
|||
Queue *packets.Queue `json:"packets"`
|
||||
StartedAt time.Time `json:"started_at"`
|
||||
Active bool `json:"active"`
|
||||
GPS nmea.GNGGA `json:"gps"`
|
||||
GPS GPS `json:"gps"`
|
||||
Modules ModuleList `json:"modules"`
|
||||
|
||||
Input *readline.Instance `json:"-"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue