saas-smartAi通信协议标准库
gongshangguo
2022-03-02 532831c91c6898f7cd402d9bfb9a35d7573afccf
server/server.go
@@ -265,7 +265,7 @@
}
// 处理设备注册
func (s *Server) RegisterDevice(msg *aiot.Protocol, cli *client.Client) {
func (s *Server) RegisterDevice(cli *client.Client, msg *aiot.Protocol) {
   // 设置节点ID
   cli.SetDeviceId(msg.SenderId)
   // 添加集群ID