insert routes to main and driver

This commit is contained in:
Adrian Zuercher
2025-04-21 09:56:30 +02:00
parent b777716aa7
commit 7b201f6e63
10 changed files with 405 additions and 121 deletions

View File

@@ -1,7 +1,8 @@
package models
type JsonData struct {
Set *[]Set `json:"set,omitempty"`
Set *[]Set `json:"set,omitempty"`
Create *[]Bus `json:"create,omitempty"`
}
func NewRequest() *JsonData {
@@ -9,7 +10,7 @@ func NewRequest() *JsonData {
}
func (r *JsonData) AddSet(bus, address uint, value uint8) {
func (r *JsonData) AddSet(bus string, address uint, value uint8) {
if r.Set == nil {
r.Set = &[]Set{}
}