Explorar el Código

test: add ping res log

lijian hace 2 años
padre
commit
94c2555869
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      pkg/mqtt/connection.go

+ 1 - 0
pkg/mqtt/connection.go

@@ -278,6 +278,7 @@ func (c *Connection) RcvMsgFromClient() {
 
 		case *PingReq:
 			pingrsp := &PingResp{}
+			server.Log.Infof("%s, comes ping res", c.DeviceCode)
 			err := c.Mgr.Provider.OnDeviceHeartBeat(c.DeviceCode)
 			if err != nil {
 				server.Log.Errorf("%s, heartbeat set error %s, close now...", host, err)