liuxiulin 1 tydzień temu
rodzic
commit
30ea5520c0

+ 0 - 1
services/controller/controller.go

@@ -215,7 +215,6 @@ func (c *Controller) processEventToQueue(args rpcs.ArgsOnEvent) (string, error)
 
 // OnEvent 事件消息处理
 func (c *Controller) OnEvent(args rpcs.ArgsOnEvent, reply *rpcs.ReplyOnEvent) error {
-	fmt.Printf("处理事件消息:----------%s", args.DeviceId)
 	t := time.Unix(int64(args.TimeStamp/1000), 0)
 	data, err := c.processEventToQueue(args)
 	if err != nil {

+ 0 - 1
services/emqx-agent/agent.go

@@ -66,7 +66,6 @@ func (a *Access) Message(topic string, payload []byte) error {
 	case "status":
 		return a.processStatus(topicInfo, device.VendorID, jsonPayload)
 	case "event":
-		fmt.Printf("处理事件消息11111111111:----------%s\n", topicInfo.DeviceCode)
 		return a.processEvent(topicInfo, device.VendorID, jsonPayload)
 	}
 	return nil