mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
认证信息界面和接口调整
This commit is contained in:
@@ -27,6 +27,16 @@ public class DeviceMqttConnectVO {
|
||||
*/
|
||||
private String passwd;
|
||||
|
||||
/**
|
||||
* 订阅主题
|
||||
*/
|
||||
private String subscribeTopic;
|
||||
|
||||
/**
|
||||
* 下发主题
|
||||
*/
|
||||
private String reportTopic;
|
||||
|
||||
/**
|
||||
* 连接端口号
|
||||
*/
|
||||
|
||||
@@ -1174,6 +1174,8 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
String clientId = ProductAuthConstant.CLIENT_ID_AUTH_TYPE_SIMPLE + "&" + deviceMqttVO.getSerialNumber() + "&" + deviceMqttVO.getProductId() + "&" + deviceMqttVO.getUserId();
|
||||
// 组装返回结果
|
||||
connectVO.setClientId(clientId).setUsername(deviceMqttVO.getMqttAccount()).setPasswd(password).setPort(brokerPort);
|
||||
connectVO.setSubscribeTopic("/" + deviceMqttVO.getProductId() + "/" + deviceMqttVO.getSerialNumber() + "/function/get");
|
||||
connectVO.setReportTopic("/" + deviceMqttVO.getProductId() + "/" + deviceMqttVO.getSerialNumber() + "/property/post");
|
||||
return connectVO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user