Commit 0759c135a3c39b7cdbafe1faf7abf6bcc10980d4
1 parent
484382ba
Create default profile transport configuration
Showing
1 changed file
with
3 additions
and
0 deletions
... | ... | @@ -29,6 +29,7 @@ import org.thingsboard.server.common.data.DeviceProfileType; |
29 | 29 | import org.thingsboard.server.common.data.DeviceTransportType; |
30 | 30 | import org.thingsboard.server.common.data.Tenant; |
31 | 31 | import org.thingsboard.server.common.data.device.profile.DefaultDeviceProfileConfiguration; |
32 | +import org.thingsboard.server.common.data.device.profile.DefaultDeviceProfileTransportConfiguration; | |
32 | 33 | import org.thingsboard.server.common.data.device.profile.DeviceProfileData; |
33 | 34 | import org.thingsboard.server.common.data.id.DeviceProfileId; |
34 | 35 | import org.thingsboard.server.common.data.id.TenantId; |
... | ... | @@ -171,7 +172,9 @@ public class DeviceProfileServiceImpl extends AbstractEntityService implements D |
171 | 172 | deviceProfile.setDescription("Default device profile"); |
172 | 173 | DeviceProfileData deviceProfileData = new DeviceProfileData(); |
173 | 174 | DefaultDeviceProfileConfiguration configuration = new DefaultDeviceProfileConfiguration(); |
175 | + DefaultDeviceProfileTransportConfiguration transportConfiguration = new DefaultDeviceProfileTransportConfiguration(); | |
174 | 176 | deviceProfileData.setConfiguration(configuration); |
177 | + deviceProfileData.setTransportConfiguration(transportConfiguration); | |
175 | 178 | deviceProfile.setProfileData(deviceProfileData); |
176 | 179 | return saveDeviceProfile(deviceProfile); |
177 | 180 | } | ... | ... |