1. 统一包名修改
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
plugin.id=cloud-module-iot-plugin-emqx
|
||||
plugin.class=com.zt.plat.module.iot.plugin.emqx.config.IotEmqxPlugin
|
||||
plugin.version=1.0.0
|
||||
plugin.provider=cloud
|
||||
plugin.dependencies=
|
||||
plugin.description=cloud-module-iot-plugin-emqx-1.0.0
|
||||
@@ -12,7 +12,7 @@ import java.time.Duration;
|
||||
*
|
||||
* @author haohao
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "cloud.iot.plugin.common")
|
||||
@ConfigurationProperties(prefix = "zt.iot.plugin.common")
|
||||
@Validated
|
||||
@Data
|
||||
public class IotPluginCommonProperties {
|
||||
@@ -19,7 +19,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设备配置设置 Vertx Handler
|
||||
*
|
||||
* ZT源码
|
||||
* 芋道源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@@ -17,7 +17,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设备 OTA 升级 Vertx Handler
|
||||
* <p>
|
||||
* ZT源码
|
||||
* 芋道源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@@ -19,7 +19,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设备服务获取 Vertx Handler
|
||||
*
|
||||
* ZT源码
|
||||
* 芋道源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@@ -19,7 +19,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设置设备属性 Vertx Handler
|
||||
*
|
||||
* ZT源码
|
||||
* 芋道源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@@ -19,7 +19,7 @@ import static com.zt.plat.framework.common.exception.enums.GlobalErrorCodeConsta
|
||||
/**
|
||||
* IoT 设备服务调用 Vertx Handler
|
||||
*
|
||||
* ZT源码
|
||||
* 芋道源码
|
||||
*/
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@@ -0,0 +1,6 @@
|
||||
plugin.id=zt-module-iot-plugin-emqx
|
||||
plugin.class=com.zt.plat.module.iot.plugin.emqx.config.IotEmqxPlugin
|
||||
plugin.version=1.0.0
|
||||
plugin.provider=zt
|
||||
plugin.dependencies=
|
||||
plugin.description=zt-module-iot-plugin-emqx-1.0.0
|
||||
@@ -31,7 +31,7 @@ public class IotPluginEmqxAutoConfiguration {
|
||||
@Bean
|
||||
public MqttClient mqttClient(Vertx vertx, IotPluginEmqxProperties emqxProperties) {
|
||||
MqttClientOptions options = new MqttClientOptions()
|
||||
.setClientId("cloud-iot-downstream-" + IdUtil.fastSimpleUUID())
|
||||
.setClientId("zt-iot-downstream-" + IdUtil.fastSimpleUUID())
|
||||
.setUsername(emqxProperties.getMqttUsername())
|
||||
.setPassword(emqxProperties.getMqttPassword())
|
||||
.setSsl(emqxProperties.getMqttSsl());
|
||||
@@ -9,7 +9,7 @@ import org.springframework.validation.annotation.Validated;
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "cloud.iot.plugin.emqx")
|
||||
@ConfigurationProperties(prefix = "zt.iot.plugin.emqx")
|
||||
@Validated
|
||||
@Data
|
||||
public class IotPluginEmqxProperties {
|
||||
@@ -1,19 +1,19 @@
|
||||
spring:
|
||||
application:
|
||||
name: cloud-module-iot-plugin-emqx
|
||||
name: zt-module-iot-plugin-emqx
|
||||
|
||||
cloud:
|
||||
zt:
|
||||
iot:
|
||||
plugin:
|
||||
common:
|
||||
upstream-url: http://127.0.0.1:48080
|
||||
downstream-port: 8100
|
||||
plugin-key: cloud-module-iot-plugin-emqx
|
||||
plugin-key: zt-module-iot-plugin-emqx
|
||||
emqx:
|
||||
mqtt-host: 127.0.0.1
|
||||
mqtt-port: 1883
|
||||
mqtt-ssl: false
|
||||
mqtt-username: cloud
|
||||
mqtt-username: zt
|
||||
mqtt-password: 123456
|
||||
mqtt-topics:
|
||||
- "/sys/#"
|
||||
@@ -1,6 +1,6 @@
|
||||
plugin.id=cloud-module-iot-plugin-http
|
||||
plugin.id=zt-module-iot-plugin-http
|
||||
plugin.class=com.zt.plat.module.iot.plugin.http.config.IotHttpVertxPlugin
|
||||
plugin.version=1.0.0
|
||||
plugin.provider=cloud
|
||||
plugin.provider=zt
|
||||
plugin.dependencies=
|
||||
plugin.description=cloud-module-iot-plugin-http-1.0.0
|
||||
plugin.description=zt-module-iot-plugin-http-1.0.0
|
||||
@@ -4,7 +4,7 @@ import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
@ConfigurationProperties(prefix = "cloud.iot.plugin.http")
|
||||
@ConfigurationProperties(prefix = "zt.iot.plugin.http")
|
||||
@Validated
|
||||
@Data
|
||||
public class IotPluginHttpProperties {
|
||||
@@ -1,13 +1,13 @@
|
||||
spring:
|
||||
application:
|
||||
name: cloud-module-iot-plugin-http
|
||||
name: zt-module-iot-plugin-http
|
||||
|
||||
cloud:
|
||||
zt:
|
||||
iot:
|
||||
plugin:
|
||||
common:
|
||||
upstream-url: http://127.0.0.1:48080
|
||||
downstream-port: 8093
|
||||
plugin-key: cloud-module-iot-plugin-http
|
||||
plugin-key: zt-module-iot-plugin-http
|
||||
http:
|
||||
server-port: 8092
|
||||
Reference in New Issue
Block a user