From 7948cc06eaeaf21802d61b1920dd8f09e1a9d1f9 Mon Sep 17 00:00:00 2001 From: charithag Date: Wed, 6 Jan 2016 17:13:56 +0530 Subject: [PATCH] Fix issue previous commit --- .../device-view.hbs | 102 +++--- .../type-view.hbs | 338 ++++++++++++++---- 2 files changed, 323 insertions(+), 117 deletions(-) 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.device-view/device-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.device-view/device-view.hbs index 02f1f018d1..48f2bc2d9b 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.device-view/device-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.device-view/device-view.hbs @@ -7,7 +7,7 @@ {{/zone}} {{#zone "device-thumbnail"}} - + {{/zone}} {{#zone "device-opetations"}} @@ -20,51 +20,73 @@ {{/zone}} {{#zone "device-detail-properties"}} -
-
+
+ +
+
-
-
Device Details
- {{unit "iot.unit.device.stats" device=device}} -
+
+
Device Statistics
+ {{unit "iot.unit.device.stats" device=device}} +
-
-
Policy Compliance
-
- -
-
- Not available yet +
+
Policy Compliance
+
+ +
+
+ Not available yet +
+
-
-
-
-
Operations Log
-
- -
-
- Not available yet +
+
Operations Log
+
+ +
+
+ Not available yet +
+
-
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 9d5f8ef557..0c04c1ed23 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,95 +1,279 @@ -{{#zone "topCss"}} - -{{/zone}} +
+

Arduino

+
+

Connect your Arduino device to the WSO2 IoT Server.

+
-{{#zone "device-thumbnail"}} +
-{{/zone}} +
-{{#zone "device-opetations"}} -
- Operations +
+ +

What You Need

+
+

You'll need the following "Hardware":

+
    +
  • ITEM 01   Arduino UNO Board. +
  • +
  • ITEM 02   Adafruit Wifi-Sheild for + Arduino. +
  • +
  • ITEM 03   An LED Bulb connected to Pin + 13. (If not available, will use the one on + the board.) +
  • +
  • GO-TO PREPARE
  • +
+
+ + View API + Download Sketch + +
+
-
- {{unit "iot.unit.device.operation-bar" device=device}} + +
+
-{{/zone}} -{{#zone "device-detail-properties"}} -
-
- +
+ -
-
+
-
-
Device Statistics
- {{unit "iot.unit.device.stats" device=device}} +
+ +
-
-
Policy Compliance
-
- -
-
- Not available yet -
-
-
+
+ + +
+

Prepare

+
+

Get the Wifi-Sheild mounted onto the Arduino-UNO board and follow the steps:

+
    +
  • 01   Download the Arduino-Sketch from + the [Download] link above. +
  • +
  • 02   Unzip the downloaded + Arduino-Sketch and open the "ArduinoBoardSketch.h" + file. +
  • +
  • 03   Provide appropriate values for + [WLAN_SSID] and [WLAN_PASS] variables according to your network. +
  • +
  • 04   Burn the sketch onto your Arduino + board and let the program run. +
  • + +
  • +                 + + + + +    The Arduino will publish its internal temperature to the WSO2-IoT-Server and its LED on + PIN 13 can be controlled from our Device Management page. +
  • +
+
+
+ +
+

Try Out

+
+

WSO2-IoT Server provides Analytics and Real-Time Statistics of your device

+
    +
  • 01   You can view all your created + devices at our [Device + Management] + page. +
  • +
  • 02   You can select any of your + created devices here and check for available + operations and monitor Real-Time data. +
  • +
  • 03   You can also view "Analytics" of + the data published to the IoT-Server by navigating + to the [Device-Analytics Page] from here. +
  • +
+
+ +

Click on the image to zoom

+
+ + + +
+ +
+ + +{{#zone "topCss"}} + +{{/zone}} + +{{#zone "bottomJs"}} + {{js "/js/download.js"}} + {{js "/js/jquery.validate.js"}} + {{/zone}} \ No newline at end of file