diff --git a/components/device-mgt-iot-androidsense/org.wso2.carbon.device.mgt.iot.androidsense.controller.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/controller/service/impl/AndroidSenseService.java b/components/device-mgt-iot-androidsense/org.wso2.carbon.device.mgt.iot.androidsense.controller.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/controller/service/impl/AndroidSenseService.java index 0bb7c4dc63..7987cb2b44 100644 --- a/components/device-mgt-iot-androidsense/org.wso2.carbon.device.mgt.iot.androidsense.controller.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/controller/service/impl/AndroidSenseService.java +++ b/components/device-mgt-iot-androidsense/org.wso2.carbon.device.mgt.iot.androidsense.controller.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/controller/service/impl/AndroidSenseService.java @@ -211,7 +211,8 @@ public class AndroidSenseService { @GET @Consumes("application/json") @Produces("application/json") - @Feature(code = "readbattery", name = "Battery", description = "Read Battery data from the device", type = "monitor") + @Feature(code = "readbattery", name = "Battery", description = "Read Battery data from the device", + type = "monitor") public SensorRecord readBattery( @HeaderParam("owner") String owner, @HeaderParam("deviceId") String deviceId, @Context HttpServletResponse response) { @@ -251,7 +252,8 @@ public class AndroidSenseService { @GET @Consumes("application/json") @Produces("application/json") - @Feature(code = "readmagnetic", name = "Magnetic", description = "Read Magnetic data from the device", type = "monitor") + @Feature(code = "readmagnetic", name = "Magnetic", description = "Read Magnetic data from the device", + type = "monitor") public SensorRecord readMagnetic( @HeaderParam("owner") String owner, @HeaderParam("deviceId") String deviceId, @Context HttpServletResponse response) { @@ -271,7 +273,8 @@ public class AndroidSenseService { @GET @Consumes("application/json") @Produces("application/json") - @Feature(code = "readaccelerometer", name = "Accelerometer", description = "Read Accelerometer data from the device", type = "monitor") + @Feature(code = "readaccelerometer", name = "Accelerometer", description = "Read Accelerometer data from the " + + "device", type = "monitor") public SensorRecord readAccelerometer( @HeaderParam("owner") String owner, @HeaderParam("deviceId") String deviceId, @Context HttpServletResponse response) { @@ -291,7 +294,8 @@ public class AndroidSenseService { @GET @Consumes("application/json") @Produces("application/json") - @Feature(code = "readrotation", name = "Rotation", description = "Read Rotational Vector data from the device", type = "monitor") + @Feature(code = "readrotation", name = "Rotation", description = "Read Rotational Vector data from the device", + type = "monitor") public SensorRecord readRotation( @HeaderParam("owner") String owner, @HeaderParam("deviceId") String deviceId, @Context HttpServletResponse response) { @@ -311,7 +315,8 @@ public class AndroidSenseService { @GET @Consumes("application/json") @Produces("application/json") - @Feature(code = "readproximity", name = "Proximity", description = "Read Proximity data from the device", type = "monitor") + @Feature(code = "readproximity", name = "Proximity", description = "Read Proximity data from the device", + type = "monitor") public SensorRecord readProximity( @HeaderParam("owner") String owner, @HeaderParam("deviceId") String deviceId, @Context HttpServletResponse response) { @@ -331,7 +336,8 @@ public class AndroidSenseService { @GET @Consumes("application/json") @Produces("application/json") - @Feature(code = "readgyroscope", name = "Gyroscope", description = "Read Gyroscope data from the device", type = "monitor") + @Feature(code = "readgyroscope", name = "Gyroscope", description = "Read Gyroscope data from the device", + type = "monitor") public SensorRecord readGyroscope( @HeaderParam("owner") String owner, @HeaderParam("deviceId") String deviceId, @Context HttpServletResponse response) { diff --git a/components/device-mgt-iot-androidsense/org.wso2.carbon.device.mgt.iot.androidsense.mgt.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/mgt/service/impl/AndroidSenseService.java b/components/device-mgt-iot-androidsense/org.wso2.carbon.device.mgt.iot.androidsense.mgt.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/mgt/service/impl/AndroidSenseService.java index 3330e9cf75..468df9c78a 100644 --- a/components/device-mgt-iot-androidsense/org.wso2.carbon.device.mgt.iot.androidsense.mgt.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/mgt/service/impl/AndroidSenseService.java +++ b/components/device-mgt-iot-androidsense/org.wso2.carbon.device.mgt.iot.androidsense.mgt.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/mgt/service/impl/AndroidSenseService.java @@ -71,7 +71,8 @@ public class AndroidSenseService { public boolean register(@FormParam("username") String username, @FormParam("password") String password, @FormParam("deviceId") String deviceId, - @FormParam("owner") String owner) { + @FormParam("owner") String owner, + @FormParam("deviceName") String deviceName) { DeviceManagement deviceManagement = new DeviceManagement(SUPER_TENANT); @@ -114,8 +115,7 @@ public class AndroidSenseService { enrolmentInfo.setDateOfLastUpdate(new Date().getTime()); enrolmentInfo.setStatus(EnrolmentInfo.Status.ACTIVE); enrolmentInfo.setOwnership(EnrolmentInfo.OwnerShip.BYOD); - String name = owner + " android " + deviceId; - device.setName(name); + device.setName(deviceName); device.setType(AndroidSenseConstants.DEVICE_TYPE); enrolmentInfo.setOwner(owner); device.setEnrolmentInfo(enrolmentInfo); diff --git a/components/device-mgt-iot-virtualfirealarm/org.wso2.carbon.device.mgt.iot.virtualfirealarm.mgt.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/service/VirtualFireAlarmService.java b/components/device-mgt-iot-virtualfirealarm/org.wso2.carbon.device.mgt.iot.virtualfirealarm.mgt.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/service/VirtualFireAlarmService.java index 92440237b3..6532724709 100644 --- a/components/device-mgt-iot-virtualfirealarm/org.wso2.carbon.device.mgt.iot.virtualfirealarm.mgt.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/service/VirtualFireAlarmService.java +++ b/components/device-mgt-iot-virtualfirealarm/org.wso2.carbon.device.mgt.iot.virtualfirealarm.mgt.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/virtualfirealarm/service/VirtualFireAlarmService.java @@ -343,7 +343,7 @@ public class VirtualFireAlarmService { KeyGenerationUtil.createApplicationKeys("virtual_firealarm"); TokenClient accessTokenClient = new TokenClient(VirtualFireAlarmConstants.DEVICE_TYPE); - AccessTokenInfo accessTokenInfo = accessTokenClient.getAccessToken(owner, deviceId); + AccessTokenInfo A = accessTokenClient.getAccessToken(owner, deviceId); //create token String accessToken = accessTokenInfo.getAccess_token(); diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/images/myDevices_analytics.png b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/images/myDevices_analytics.png index 2fd8075ff4..61609de454 100644 Binary files a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/images/myDevices_analytics.png and b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/public/images/myDevices_analytics.png differ diff --git a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/type-view.hbs b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/type-view.hbs index ffd54cd6e6..5ef348e1f1 100644 --- a/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/type-view.hbs +++ b/features/device-mgt-iot-androidsense-feature/org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android_sense.type-view/type-view.hbs @@ -1,7 +1,6 @@

Android Sense


-

Connect your Android device to the WSO2 IoT Server.

@@ -10,6 +9,11 @@
+

What it Does

+
+

Enables users to connect an Android device to WSO2 IoT Server and visualize sensor data.

+
+

What You Need


You've got to just have an Android Device to get started.

diff --git a/features/device-mgt-iot-arduino-feature/org.wso2.carbon.device.mgt.iot.arduino.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.arduino.type-view/type-view.hbs b/features/device-mgt-iot-arduino-feature/org.wso2.carbon.device.mgt.iot.arduino.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.arduino.type-view/type-view.hbs index 0c04c1ed23..cd9df033ec 100644 --- a/features/device-mgt-iot-arduino-feature/org.wso2.carbon.device.mgt.iot.arduino.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.arduino.type-view/type-view.hbs +++ b/features/device-mgt-iot-arduino-feature/org.wso2.carbon.device.mgt.iot.arduino.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.arduino.type-view/type-view.hbs @@ -1,7 +1,6 @@

Arduino


-

Connect your Arduino device to the WSO2 IoT Server.

@@ -10,6 +9,11 @@
+

What it Does

+
+

Enables users to connect devices built around Arduino Boards to WSO2 IoT Server and visualize sensor data.

+
+

What You Need


You'll need the following "Hardware":

@@ -23,7 +27,8 @@ 13. (If not available, will use the one on the board.) -
  • GO-TO PREPARE
  • +
  • STEP 04   Proceed to the [Prepare] + section.
    diff --git a/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/type-view.hbs b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/type-view.hbs index d81ac17819..45d945252d 100644 --- a/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/type-view.hbs +++ b/features/device-mgt-iot-digitaldisplay-feature/org.wso2.carbon.device.mgt.iot.digitaldisplay.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.digital_display.type-view/type-view.hbs @@ -1,7 +1,6 @@

    Digital Display


    -

    Connect your Digital Display to the WSO2 IoT Server.

    @@ -10,6 +9,11 @@
    +

    What it Does

    +
    +

    Enables users to connect a Digital Displays built around RaspberryPi Boards to WSO2 IoT Server and manage content.

    +
    +

    What You Need


    You'll need the following "Hardware":

    @@ -20,7 +24,8 @@
  • ITEM 02   A Digital Display with HDMI Cable.
  • -
  • GO-TO PREPARE
  • +
  • STEP 03   Proceed to the [Prepare] + section.
    diff --git a/features/device-mgt-iot-droneanalyzer-feature/org.wso2.carbon.device.mgt.iot.droneanalyzer.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.drone_analyzer.type-view/type-view.hbs b/features/device-mgt-iot-droneanalyzer-feature/org.wso2.carbon.device.mgt.iot.droneanalyzer.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.drone_analyzer.type-view/type-view.hbs index 725552edbc..9f2c555204 100644 --- a/features/device-mgt-iot-droneanalyzer-feature/org.wso2.carbon.device.mgt.iot.droneanalyzer.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.drone_analyzer.type-view/type-view.hbs +++ b/features/device-mgt-iot-droneanalyzer-feature/org.wso2.carbon.device.mgt.iot.droneanalyzer.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.drone_analyzer.type-view/type-view.hbs @@ -1,7 +1,6 @@

    Drone Analyzer


    -

    Connect your Drone to the WSO2 IoT Server.

    @@ -10,6 +9,11 @@
    +

    What it Does

    +
    +

    Enables users to connect a IRIS+ Drones to WSO2 IoT Server and visualize statistics.

    +
    +

    What You Need


    You'll need the following "Hardware":

    @@ -19,7 +23,8 @@
  • ITEM 02   USB to Micro USB cable or Telemetry Radio receiver.
  • -
  • GO-TO PREPARE
  • +
  • STEP 03   Proceed to the [Prepare] + section.
    @@ -157,7 +162,7 @@
  • 02   Click on the [Download] button above to get the IRIS+ Drone setup files.
  • -
  • 04   Connecting the drone:
  • +
  • 03   Connecting the drone:
  • diff --git a/features/device-mgt-iot-raspberrypi-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.raspberrypi.type-view/type-view.hbs b/features/device-mgt-iot-raspberrypi-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.raspberrypi.type-view/type-view.hbs index c283f6d717..9c5ccb4cf7 100644 --- a/features/device-mgt-iot-raspberrypi-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.raspberrypi.type-view/type-view.hbs +++ b/features/device-mgt-iot-raspberrypi-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.raspberrypi.type-view/type-view.hbs @@ -1,7 +1,6 @@

    Raspberry Pi


    -

    Connect your Raspberry Pi device to the WSO2 IoT Server.

    @@ -10,6 +9,11 @@
    +

    What it Does

    +
    +

    Enables users to connect a RaspberryPi based device to WSO2 IoT Server.

    +
    +

    What You Need


    You'll need the following "Hardware":

    @@ -22,7 +26,8 @@
  • ITEM 03   An LED Bulb.
  • -
  • GO-TO PREPARE
  • +
  • STEP 04   Proceed to the [Prepare] + section.
    diff --git a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/type-view.hbs b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/type-view.hbs index 1d495cc70c..ef9d67cd63 100644 --- a/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/type-view.hbs +++ b/features/device-mgt-iot-virtualfirealarm-feature/org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/type-view.hbs @@ -1,8 +1,6 @@
    -

    Virtual Firealrm

    +

    Virtual Firealarm


    -

    Use our Virtual Instance of a FireAlarm and connect to the WSO2-IoT - Server.

    @@ -10,6 +8,12 @@
    + +

    What it Does

    +
    +

    Provides users with a Virtual Agent that mimics the functionality of a Firealarm. Once run, the Virtual Firealarm will connect to WSO2 IoTServer and push Temperature readings.

    +
    +

    What You Need


    VirtualFireAlarm is a "Virtual" Device for you to try-out our server.

    @@ -261,4 +265,4 @@ {{#zone "bottomJs"}} {{js "/js/download.js"}} {{js "/js/jquery.validate.js"}} -{{/zone}} \ No newline at end of file +{{/zone}}