fix: 通讯组件
parent
e53e44cb20
commit
38e0f41957
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -5,7 +5,7 @@
|
|||
"name": "MQTT标准协议组件",
|
||||
"type": "device",
|
||||
"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\"}",
|
||||
"converter": "6260396d67aced2696184053",
|
||||
"converType": "custom",
|
||||
|
@ -18,7 +18,7 @@
|
|||
"name": "EMQX标准协议组件",
|
||||
"type": "device",
|
||||
"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\"}",
|
||||
"converter": "6260396d67aced2696184053",
|
||||
"converType": "custom",
|
||||
|
@ -31,7 +31,7 @@
|
|||
"name": "小度音箱接入组件",
|
||||
"type": "biz",
|
||||
"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\"}",
|
||||
"converter": "",
|
||||
"converType": "",
|
||||
|
@ -44,7 +44,7 @@
|
|||
"name": "WEBSOCKET服务端",
|
||||
"type": "device",
|
||||
"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\"}]}",
|
||||
"converter": "d7e84930-5460-4638-aa3f-e0c2015628f4",
|
||||
"converType": "custom",
|
||||
|
@ -58,7 +58,7 @@
|
|||
"name": "DLT645电表通讯组件",
|
||||
"type": "device",
|
||||
"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\"}",
|
||||
"converType": "static",
|
||||
"state": "stopped",
|
||||
|
|
|
@ -51,8 +51,9 @@ public class ProtocolController {
|
|||
|
||||
@ApiOperation("修改组件")
|
||||
@PostMapping("/editComponent")
|
||||
public String saveComponent(@RequestBody @Validated Request<ProtocolComponentBo> bo) {
|
||||
return protocolService.saveComponent(bo.getData());
|
||||
public boolean saveComponent(@RequestBody @Validated Request<ProtocolComponentBo> bo) {
|
||||
protocolService.saveComponent(bo.getData());
|
||||
return true;
|
||||
}
|
||||
|
||||
@ApiOperation("获取组件详情")
|
||||
|
|
|
@ -29,12 +29,11 @@ import lombok.EqualsAndHashCode;
|
|||
@EqualsAndHashCode(callSuper = true)
|
||||
@AutoMapper(target = ProtocolComponent.class, reverseConvertGenerate = false)
|
||||
public class ProtocolComponentBo extends BaseDto {
|
||||
private static final long serialVersionUID = -1L;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String id;
|
||||
|
||||
private static final long serialVersionUID = -1L;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@Size(max = 65535, message = "长度不正确")
|
||||
private String config;
|
||||
|
|
Loading…
Reference in New Issue