You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p.OnMessage([]byte("{\"Cmd\":\"OpenFail\",\"Desc\":\"Got EOF (End of File) on port which usually means another app other than Serial Port JSON Server is locking your port. "+err.Error() +"\",\"Port\":\""+p.portConf.Name+"\",\"Baud\":"+strconv.Itoa(p.portConf.Baud) +"}"))
149
+
p.ChanWriter.Write([]byte("{\"Cmd\":\"OpenFail\",\"Desc\":\"Got EOF (End of File) on port which usually means another app other than Serial Port JSON Server is locking your port. "+err.Error() +"\",\"Port\":\""+p.portConf.Name+"\",\"Baud\":"+strconv.Itoa(p.portConf.Baud) +"}"))
150
150
151
151
}
152
152
153
153
iferr!=nil {
154
154
log.Println(err)
155
-
p.OnMessage([]byte("Error reading on "+p.portConf.Name+" "+err.Error() +" Closing port."))
156
-
p.OnMessage([]byte("{\"Cmd\":\"OpenFail\",\"Desc\":\"Got error reading on port. "+err.Error() +"\",\"Port\":\""+p.portConf.Name+"\",\"Baud\":"+strconv.Itoa(p.portConf.Baud) +"}"))
155
+
p.ChanWriter.Write([]byte("Error reading on "+p.portConf.Name+" "+err.Error() +" Closing port."))
156
+
p.ChanWriter.Write([]byte("{\"Cmd\":\"OpenFail\",\"Desc\":\"Got error reading on port. "+err.Error() +"\",\"Port\":\""+p.portConf.Name+"\",\"Baud\":"+strconv.Itoa(p.portConf.Baud) +"}"))
0 commit comments