Commit 0759c135a3c39b7cdbafe1faf7abf6bcc10980d4

Authored by Igor Kulikov
1 parent 484382ba

Create default profile transport configuration

@@ -29,6 +29,7 @@ import org.thingsboard.server.common.data.DeviceProfileType; @@ -29,6 +29,7 @@ import org.thingsboard.server.common.data.DeviceProfileType;
29 import org.thingsboard.server.common.data.DeviceTransportType; 29 import org.thingsboard.server.common.data.DeviceTransportType;
30 import org.thingsboard.server.common.data.Tenant; 30 import org.thingsboard.server.common.data.Tenant;
31 import org.thingsboard.server.common.data.device.profile.DefaultDeviceProfileConfiguration; 31 import org.thingsboard.server.common.data.device.profile.DefaultDeviceProfileConfiguration;
  32 +import org.thingsboard.server.common.data.device.profile.DefaultDeviceProfileTransportConfiguration;
32 import org.thingsboard.server.common.data.device.profile.DeviceProfileData; 33 import org.thingsboard.server.common.data.device.profile.DeviceProfileData;
33 import org.thingsboard.server.common.data.id.DeviceProfileId; 34 import org.thingsboard.server.common.data.id.DeviceProfileId;
34 import org.thingsboard.server.common.data.id.TenantId; 35 import org.thingsboard.server.common.data.id.TenantId;
@@ -171,7 +172,9 @@ public class DeviceProfileServiceImpl extends AbstractEntityService implements D @@ -171,7 +172,9 @@ public class DeviceProfileServiceImpl extends AbstractEntityService implements D
171 deviceProfile.setDescription("Default device profile"); 172 deviceProfile.setDescription("Default device profile");
172 DeviceProfileData deviceProfileData = new DeviceProfileData(); 173 DeviceProfileData deviceProfileData = new DeviceProfileData();
173 DefaultDeviceProfileConfiguration configuration = new DefaultDeviceProfileConfiguration(); 174 DefaultDeviceProfileConfiguration configuration = new DefaultDeviceProfileConfiguration();
  175 + DefaultDeviceProfileTransportConfiguration transportConfiguration = new DefaultDeviceProfileTransportConfiguration();
174 deviceProfileData.setConfiguration(configuration); 176 deviceProfileData.setConfiguration(configuration);
  177 + deviceProfileData.setTransportConfiguration(transportConfiguration);
175 deviceProfile.setProfileData(deviceProfileData); 178 deviceProfile.setProfileData(deviceProfileData);
176 return saveDeviceProfile(deviceProfile); 179 return saveDeviceProfile(deviceProfile);
177 } 180 }