[TASK] meshviewer-ffrgb output add mac of link

This commit is contained in:
Martin Geno 2017-11-14 19:32:24 +01:00
parent 93321ab3ad
commit 63eaa413d6
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
1 changed files with 7 additions and 9 deletions

View File

@ -55,7 +55,6 @@ type Autoupdater struct {
Branch string `json:"branch,omitempty"` Branch string `json:"branch,omitempty"`
} }
// Location struct // Location struct
type Location struct { type Location struct {
Longtitude float64 `json:"longitude,omitempty"` Longtitude float64 `json:"longitude,omitempty"`
@ -64,14 +63,13 @@ type Location struct {
// Link // Link
type Link struct { type Link struct {
Type string `json:"type"` Type string `json:"type"`
Source string `json:"source"` Source string `json:"source"`
Target string `json:"target"` Target string `json:"target"`
SourceTQ float32 `json:"source_tq"` SourceTQ float32 `json:"source_tq"`
TargetTQ float32 `json:"target_tq"` TargetTQ float32 `json:"target_tq"`
// keep the logic for maybe later implementation SourceMAC string `json:"source_mac"`
SourceMAC string `json:"-"` TargetMAC string `json:"target_mac"`
TargetMAC string `json:"-"`
} }
func NewNode(nodes *runtime.Nodes, n *runtime.Node) *Node { func NewNode(nodes *runtime.Nodes, n *runtime.Node) *Node {