This commit is contained in:
richboo111
2023-05-10 16:46:14 +08:00
parent a317315082
commit 472dac5dbb
2 changed files with 10 additions and 7 deletions

View File

@@ -137,6 +137,8 @@ func MtInit() {
temp := string(msg)
if err != nil || temp != "HB" {
break
} else {
ReadMsgFromVendor(VendorIDMT, "", msg)
}
fmt.Printf("%s receive: %s\n", conn.RemoteAddr(), string(msg))
}
@@ -172,6 +174,8 @@ func MtInit() {
temp := string(msg)
if err != nil || temp != HeartCheckSuccess {
break
} else {
ReadMsgFromVendor(VendorIDMT, "", msg)
}
fmt.Printf("%s connSub:receive: %s\n", connSub.RemoteAddr(), string(msg))
}