|
@@ -117,6 +117,10 @@ func AuthDevice(args DeviceAuthArgs, r render.Render) {
|
|
hosts, err = server.GetServerHosts(strings.ToUpper(args.Protocol)+"Access", "tcphost")
|
|
hosts, err = server.GetServerHosts(strings.ToUpper(args.Protocol)+"Access", "tcphost")
|
|
case "coap":
|
|
case "coap":
|
|
hosts, err = server.GetServerHosts(strings.ToUpper(args.Protocol)+"Access", "udphost")
|
|
hosts, err = server.GetServerHosts(strings.ToUpper(args.Protocol)+"Access", "udphost")
|
|
|
|
+ case "mqttX": // TODO: 增加配置文件支持
|
|
|
|
+ hosts = []string{
|
|
|
|
+ "114.115.251.196:1883",
|
|
|
|
+ }
|
|
default:
|
|
default:
|
|
err = errors.New("unsuported protocol: " + args.Protocol)
|
|
err = errors.New("unsuported protocol: " + args.Protocol)
|
|
}
|
|
}
|