Added Testing of Callback Message for Parsing messages

This commit is contained in:
2025-05-31 18:25:03 +02:00
parent 730e16cf5d
commit a743e940c0
6 changed files with 142 additions and 13 deletions
+1 -4
View File
@@ -22,10 +22,7 @@ func (sc *SerialConnection) GetPortPath() string {
return sc.portPath
}
func (sc *SerialConnection) Connect(portPath string) error {
mode := &serial.Mode{
BaudRate: 115200,
}
func (sc *SerialConnection) Connect(portPath string, mode *serial.Mode) error {
port, err := serial.Open(portPath, mode)
if err != nil {
return err