Adding multi device support

This commit is contained in:
2025-12-06 22:26:03 +00:00
parent 9cab522c06
commit c23441908f
9 changed files with 188 additions and 4 deletions
+2
View File
@@ -1,6 +1,7 @@
package peripheral
import (
"esdi/peripheral/devices"
"time"
"github.com/tarm/serial"
@@ -39,6 +40,7 @@ type PeripheralDevice struct {
ID uint8
Name string
WT *WalkieTalkie
DeviceAPI *devices.Device
}
func NewPeripheralDevice(port string) *PeripheralDevice {