new: added CAN to session json object

This commit is contained in:
Simone Margaritelli 2024-08-21 15:47:27 +02:00
parent 0202028524
commit 3ec7b01bed

View file

@ -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(),