|
|
@ -79,6 +79,7 @@ public class RaspberrypiManagerService {
|
|
|
|
device.setName(name);
|
|
|
|
device.setName(name);
|
|
|
|
device.setType(RaspberrypiConstants.DEVICE_TYPE);
|
|
|
|
device.setType(RaspberrypiConstants.DEVICE_TYPE);
|
|
|
|
enrolmentInfo.setOwner(owner);
|
|
|
|
enrolmentInfo.setOwner(owner);
|
|
|
|
|
|
|
|
device.setEnrolmentInfo(enrolmentInfo);
|
|
|
|
boolean added = deviceManagement.getDeviceManagementService().enrollDevice(device);
|
|
|
|
boolean added = deviceManagement.getDeviceManagementService().enrollDevice(device);
|
|
|
|
if (added) {
|
|
|
|
if (added) {
|
|
|
|
response.setStatus(Response.Status.OK.getStatusCode());
|
|
|
|
response.setStatus(Response.Status.OK.getStatusCode());
|
|
|
|