...
|
...
|
@@ -140,8 +140,16 @@ public class TenantServiceImpl extends AbstractEntityService implements TenantSe |
140
|
140
|
|
141
|
141
|
//Thingskit function
|
142
|
142
|
DeviceProfile deviceProfile = deviceProfileService.createDefaultDeviceProfile(savedTenant.getId());
|
143
|
|
- DeviceProfileDTO profileDTO = new DeviceProfileDTO(deviceProfile.getName(),deviceProfile.getTenantId(),deviceProfile.getId(), DeviceTypeEnum.DIRECT_CONNECTION);
|
|
143
|
+ DeviceProfileDTO profileDTO = new DeviceProfileDTO(deviceProfile.getName(),deviceProfile.getTenantId(),deviceProfile.getId(), DeviceTypeEnum.SENSOR);
|
144
|
144
|
ytDeviceProfileService.insertOrUpdate(profileDTO);
|
|
145
|
+ DeviceProfile gatewayProfile = deviceProfileService.createDeviceProfile(savedTenant.getId(),"默认MQTT网关设备");
|
|
146
|
+ DeviceProfileDTO gatewayDTO = new DeviceProfileDTO(gatewayProfile.getName(),gatewayProfile.getTenantId(),gatewayProfile.getId(), DeviceTypeEnum.GATEWAY);
|
|
147
|
+ ytDeviceProfileService.insertOrUpdate(gatewayDTO);
|
|
148
|
+ DeviceProfile directProfile = deviceProfileService.createDeviceProfile(savedTenant.getId(),"默认MQTT直连设备");
|
|
149
|
+ DeviceProfileDTO directDTO = new DeviceProfileDTO(directProfile.getName(),directProfile.getTenantId(),directProfile.getId(), DeviceTypeEnum.DIRECT_CONNECTION);
|
|
150
|
+ ytDeviceProfileService.insertOrUpdate(directDTO);
|
|
151
|
+
|
|
152
|
+
|
145
|
153
|
apiUsageStateService.createDefaultApiUsageState(savedTenant.getId(), null);
|
146
|
154
|
|
147
|
155
|
}
|
...
|
...
|
|