Skip to content

Commit 76b39ae

Browse files
committed
fix types
1 parent b1888c4 commit 76b39ae

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

backend/internal/adj/adj.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func getBoards(info Info, boardsList map[string]string) (map[string]Board, error
8585
var board Board
8686

8787
board.Name = boardName
88+
board.IP = boardJSON.IP
8889

8990
board.Packets, err = getBoardPackets(boardJSON.PacketsPaths)
9091
if err != nil {

backend/internal/adj/models.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ type Info struct {
99
Ports map[string]uint16 `json:"ports"`
1010
Addresses map[string]string `json:"addresses"`
1111
Units map[string]string `json:"units"`
12-
MessageIds map[string]string `json:"message_ids"`
12+
MessageIds map[string]uint16 `json:"message_ids"`
1313
BoardIds map[string]uint16
1414
}
1515

1616
type Board struct {
1717
Name string
18+
IP string
1819
Packets []Packet
1920
Measurements []Measurement
2021
Structures []Structure

0 commit comments

Comments
 (0)