|
|
@ -826,8 +826,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|
|
|
deviceConfig.setClientId(dcrResponse.getClientId());
|
|
|
|
deviceConfig.setClientId(dcrResponse.getClientId());
|
|
|
|
deviceConfig.setClientSecret(dcrResponse.getClientSecret());
|
|
|
|
deviceConfig.setClientSecret(dcrResponse.getClientSecret());
|
|
|
|
|
|
|
|
|
|
|
|
StringBuilder scopes = new StringBuilder("device_" + type.replace(" ", "")
|
|
|
|
StringBuilder scopes = new StringBuilder("device:" + type.replace(" ", "") + ":" + id);
|
|
|
|
.replace("_", "") + "_" + id);
|
|
|
|
|
|
|
|
for (String topic : mqttEventTopicStructure) {
|
|
|
|
for (String topic : mqttEventTopicStructure) {
|
|
|
|
if (topic.contains("${deviceId}")) {
|
|
|
|
if (topic.contains("${deviceId}")) {
|
|
|
|
topic = topic.replace("${deviceId}", id);
|
|
|
|
topic = topic.replace("${deviceId}", id);
|
|
|
|