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
in serverrtu.go , you can append multiple buffer to one buffer then exec NewRTUFrame()
if bytesRead != 0 {
// Set the length of the packet to the number of read bytes.
packet := buffer[:bytesRead]
res1 := append(Abuf, packet...)
if len(Abuf) > 20 {
CleanAbuf()
}
frame, err := NewRTUFrame(res1)
if err != nil {
Abuf = res1
continue SkipFrameError
//return
}
Most of the time serial did not read all the data frame and return error "bad serial frame error %v\n"
mbserver/servertu.go
Line 39 in daf3c8c
Because it don't know when to start/stop reading
The text was updated successfully, but these errors were encountered: