|
|
@ -90,6 +90,7 @@ public class GatewaySessionCtx { |
|
|
device.setTenantId(gateway.getTenantId()); |
|
|
device.setTenantId(gateway.getTenantId()); |
|
|
device.setName(deviceName); |
|
|
device.setName(deviceName); |
|
|
device.setType(deviceType); |
|
|
device.setType(deviceType); |
|
|
|
|
|
device.setCustomerId(gateway.getCustomerId()); |
|
|
device = deviceService.saveDevice(device); |
|
|
device = deviceService.saveDevice(device); |
|
|
relationService.saveRelationAsync(new EntityRelation(gateway.getId(), device.getId(), "Created")); |
|
|
relationService.saveRelationAsync(new EntityRelation(gateway.getId(), device.getId(), "Created")); |
|
|
processor.onDeviceAdded(device); |
|
|
processor.onDeviceAdded(device); |
|
|
|