From 3ec7b01bedc3aeffb0544510983f8f0b40e5c31c Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Wed, 21 Aug 2024 15:47:27 +0200 Subject: [PATCH] new: added CAN to session json object --- session/session_json.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/session/session_json.go b/session/session_json.go index 6ee9e2fd..2ae9f6f5 100644 --- a/session/session_json.go +++ b/session/session_json.go @@ -59,6 +59,7 @@ type SessionJSON struct { WiFi *network.WiFi `json:"wifi"` BLE *network.BLE `json:"ble"` HID *network.HID `json:"hid"` + CAN *network.CAN `json:"can"` Queue *packets.Queue `json:"packets"` StartedAt time.Time `json:"started_at"` PolledAt time.Time `json:"polled_at"` @@ -95,6 +96,7 @@ func (s *Session) MarshalJSON() ([]byte, error) { WiFi: s.WiFi, BLE: s.BLE, HID: s.HID, + CAN: s.CAN, Queue: s.Queue, StartedAt: s.StartedAt, PolledAt: time.Now(),