fix: 通讯组件

V0.5.x
jay 2023-06-15 16:49:28 +08:00
parent e53e44cb20
commit 38e0f41957
8 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@
"name": "MQTT标准协议组件", "name": "MQTT标准协议组件",
"type": "device", "type": "device",
"protocol": "mqtt", "protocol": "mqtt",
"jarFile": "iot-mqtt-component-0.4.3-SNAPSHOT.jar", "jarFile": "iot-mqtt-component-0.4.5-SNAPSHOT.jar",
"config": "{\"port\":1883,\"ssl\":false,\"type\":\"server\"}", "config": "{\"port\":1883,\"ssl\":false,\"type\":\"server\"}",
"converter": "6260396d67aced2696184053", "converter": "6260396d67aced2696184053",
"converType": "custom", "converType": "custom",
@ -18,7 +18,7 @@
"name": "EMQX标准协议组件", "name": "EMQX标准协议组件",
"type": "device", "type": "device",
"protocol": "mqtt", "protocol": "mqtt",
"jarFile": "iot-emqx-component-0.4.3-SNAPSHOT.jar", "jarFile": "iot-emqx-component-0.4.5-SNAPSHOT.jar",
"config": "{\"port\":\"1884\",\"ssl\":false,\"type\":\"client\",\"subscribeTopics\":[\"/sys/+/+/s/#\",\"/sys/client/connected\",\"/sys/client/disconnected\",\"/sys/session/subscribed\",\"/sys/session/unsubscribed\"],\"authPort\":\"8088\",\"broker\":\"127.0.0.1\",\"clientId\":\"test\",\"username\":\"test\",\"password\":\"123\"}", "config": "{\"port\":\"1884\",\"ssl\":false,\"type\":\"client\",\"subscribeTopics\":[\"/sys/+/+/s/#\",\"/sys/client/connected\",\"/sys/client/disconnected\",\"/sys/session/subscribed\",\"/sys/session/unsubscribed\"],\"authPort\":\"8088\",\"broker\":\"127.0.0.1\",\"clientId\":\"test\",\"username\":\"test\",\"password\":\"123\"}",
"converter": "6260396d67aced2696184053", "converter": "6260396d67aced2696184053",
"converType": "custom", "converType": "custom",
@ -31,7 +31,7 @@
"name": "小度音箱接入组件", "name": "小度音箱接入组件",
"type": "biz", "type": "biz",
"protocol": "http", "protocol": "http",
"jarFile": "iot-http-biz-component-0.4.3-SNAPSHOT.jar", "jarFile": "iot-http-biz-component-0.4.5-SNAPSHOT.jar",
"config": "{\"port\":\"8084\"}", "config": "{\"port\":\"8084\"}",
"converter": "", "converter": "",
"converType": "", "converType": "",
@ -44,7 +44,7 @@
"name": "WEBSOCKET服务端", "name": "WEBSOCKET服务端",
"type": "device", "type": "device",
"protocol": "websocket", "protocol": "websocket",
"jarFile": "iot-websocket-component-0.4.3-SNAPSHOT.jar", "jarFile": "iot-websocket-component-0.4.5-SNAPSHOT.jar",
"config": "{\"port\":\"2454\",\"ssl\":false,\"type\":\"server\",\"ip\":\"\",\"url\":\"\",\"heartBeatTime\":10000,\"heartBeatData\":\"\",\"accessTokens\":[{\"id\":\"b4f02276-13d8-499d-89b3-8acd6330b310\",\"tokenName\":\"tokrn\",\"tokenStr\":\"NxW4nPt2SPnc87pdFXAQmCZY4Kb0nRsPDC6z4Qzpp1AtRWDJxg8iZMqFpcwZ2igi\"}]}", "config": "{\"port\":\"2454\",\"ssl\":false,\"type\":\"server\",\"ip\":\"\",\"url\":\"\",\"heartBeatTime\":10000,\"heartBeatData\":\"\",\"accessTokens\":[{\"id\":\"b4f02276-13d8-499d-89b3-8acd6330b310\",\"tokenName\":\"tokrn\",\"tokenStr\":\"NxW4nPt2SPnc87pdFXAQmCZY4Kb0nRsPDC6z4Qzpp1AtRWDJxg8iZMqFpcwZ2igi\"}]}",
"converter": "d7e84930-5460-4638-aa3f-e0c2015628f4", "converter": "d7e84930-5460-4638-aa3f-e0c2015628f4",
"converType": "custom", "converType": "custom",
@ -58,7 +58,7 @@
"name": "DLT645电表通讯组件", "name": "DLT645电表通讯组件",
"type": "device", "type": "device",
"protocol": "tcp", "protocol": "tcp",
"jarFile": "iot-DLT645-component-0.4.3-SNAPSHOT.jar", "jarFile": "iot-DLT645-component-0.4.5-SNAPSHOT.jar",
"config": "{\"port\":2424,\"ssl\":false,\"type\":\"server\",\"parserType\":\"不处理\",\"parserConfiguration\":{\"delimited\":\"\",\"fix\":1,\"script\":\"\"},\"host\":\"127.0.0.1\"}", "config": "{\"port\":2424,\"ssl\":false,\"type\":\"server\",\"parserType\":\"不处理\",\"parserConfiguration\":{\"delimited\":\"\",\"fix\":1,\"script\":\"\"},\"host\":\"127.0.0.1\"}",
"converType": "static", "converType": "static",
"state": "stopped", "state": "stopped",

View File

@ -51,8 +51,9 @@ public class ProtocolController {
@ApiOperation("修改组件") @ApiOperation("修改组件")
@PostMapping("/editComponent") @PostMapping("/editComponent")
public String saveComponent(@RequestBody @Validated Request<ProtocolComponentBo> bo) { public boolean saveComponent(@RequestBody @Validated Request<ProtocolComponentBo> bo) {
return protocolService.saveComponent(bo.getData()); protocolService.saveComponent(bo.getData());
return true;
} }
@ApiOperation("获取组件详情") @ApiOperation("获取组件详情")

View File

@ -29,12 +29,11 @@ import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProtocolComponent.class, reverseConvertGenerate = false) @AutoMapper(target = ProtocolComponent.class, reverseConvertGenerate = false)
public class ProtocolComponentBo extends BaseDto { public class ProtocolComponentBo extends BaseDto {
private static final long serialVersionUID = -1L;
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private String id; private String id;
private static final long serialVersionUID = -1L;
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@Size(max = 65535, message = "长度不正确") @Size(max = 65535, message = "长度不正确")
private String config; private String config;