Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Let's take a look at the tasks that Chris (the IoT team administrator) and Alex (the device owner) have to do, from downloading WSO2 IoT Server to registering the Android device.

...

Tip
titleTip by Milan

Have you run the sample script previously when trying out the iOS quick start guide? If so, delete the two users alex and chris, the role iotMobileUser, and the sample policies that were created for Android, iOS and Windows.

  1. Download the WSO2 IoT Server sample pack.
  2. Create a directory named samples in the <IoT_HOME>/core directory and copy the downloaded file to it.

  3.  Navigate to the samples directory and run the command given below to copy the required content to the quick start guide setup.

    Code Block
    cd <IoT_HOME>/core/samples/mobile-qsg
    sh copy-files.sh
  4. Start WSO2 IoT Server.
    If you started WSO2 IoT Server previously, stop the core and analytics profiles using CRTL+C, and restart the two profiles in the given order.
    Restart the servers using the following command:

    Code Block
    ./wso2server.sh
  5. Run the mobile-qsg.sh script.

    Code Block
    sh mobile-qsg.sh
    Note

    If you haven't configured WSO2 IoTS for iOS, the iOS sample policy will not be created. Therefore, you will get the message given below. This will not restrict you from trying out the Android quick start guide.

    Code Block
    Unable to create the ios passcode policy. Terminating the IoTS QSG now.

...

  1. Navigate to the App Store using the following URL:  https://<IoT_HOST>:9443/store

  2. Sign in using alex and alexuser as the username and password.

  3. Click the Catalog mobile application, and click Install.

  4. Select Instant install, and click Yes.
  5. Click on your device in the pop-up menu to install and subscribe to the application.
    A success message will be shown when you have successfully subscribed to the application.
  6. Tap Install on your device to finish installing the application.

    Now you can use start using the application. For more information, see Downloading Applications via the App Catalog Application.

What's next?