修改IOT地址和密码

This commit is contained in:
sunyuehai 2024-08-28 16:18:11 +08:00
parent fd9e177273
commit 70f38708f6
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ public class IotService {
String longinUrl = "/api/auth/login"; String longinUrl = "/api/auth/login";
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("username", "tenant@thingsboard.org"); map.put("username", "tenant@thingsboard.org");
map.put("password", "tenant"); map.put("password", "jsDU89naXB4X2y!Y");
String loginPath = baseUrl + longinUrl; String loginPath = baseUrl + longinUrl;
HttpRequest request = HttpUtil.createPost(loginPath); HttpRequest request = HttpUtil.createPost(loginPath);
HttpResponse execute = request.body(JSON.toJSONString(map)).execute(); HttpResponse execute = request.body(JSON.toJSONString(map)).execute();

View File

@ -258,7 +258,7 @@ justauth:
redirect-uri: ${justauth.address}/social-callback?source=gitlab redirect-uri: ${justauth.address}/social-callback?source=gitlab
iot: iot:
baseurl: http://118.89.86.111:8080 baseurl: http://8.219.157.97:9090
url: url:
scopeAttribute: /api/plugins/telemetry/{entityType}/{entityId}/values/attributes/{scope} scopeAttribute: /api/plugins/telemetry/{entityType}/{entityId}/values/attributes/{scope}
telemetry: /api/plugins/telemetry/{entityType}/{entityId}/values/timeseries telemetry: /api/plugins/telemetry/{entityType}/{entityId}/values/timeseries