Versions Compared

Key

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

...

Tip
titleBefore you begin
  • Make sure to have an Android device that supports the Lollipop version or upwards.

    Info

    WSO2 IoT Server implements data containerization using the Android Managed Profile feature, which is only available on Android Lollipop OS version and above.

  • Do you have work profile that is already running on your device? If yes, on your device, go to Settings > Accounts and remove it. Else, you run into errors.

  • Start the WSO2 IoT Server core profile.

    Code Block
    cd <IoT_HOME>/bin sh iot-server.sh
  • Download the Android agent.

    Expand
    titleClick here for more information.

    Follow the steps given below to get the Android Agent. 

    Localtabgroup
    Localtab
    titleUsing the QR code
    Panel
    borderColor#11375B
    bgColor#ffffff
    borderWidth2
    1. Sign in to the Device Management console.

      Expand
      titleClick here for more information.
      Panel
      borderColor#11375B
      bgColor#ffffff
      borderWidth2
      Insert excerpt
      Accessing the WSO2 IoT Server Consoles
      Accessing the WSO2 IoT Server Consoles
      nopaneltrue
    2. Click Enroll New Device.

      Info

      If you are an Admin user, click the menu icon, and select DEVICE MANAGEMENT, to access the ENROLL DEVICE button.

    3. Click Android to enroll your device with WSO2 IoT Server.
    4. Enroll the device.
      1. Click Enroll Device.
      2. Scan the QR code to download the Android agent onto your Android device.

        Info

        You need to make sure that your Android device and the IoT Server are on the same network, else you will not be able to download the Android agent.

        After scanning the QR code you will be directed to a web page. When this page appears, the web browser will typically display an "insecure connection" message, which requires your confirmation before you can continue.

        Info
        Expand
        titleClick here for more information.

        The WSO2 IoT Server consoles are based on the HTTPS protocol, which is a combination of HTTP and SSL protocols. This protocol is generally used to encrypt the traffic from the client to server for security reasons. The certificate it works with is used for encryptiononly,and does not prove the server identity, so when you try to access these consoles, a warning of untrusted connection is usually displayed. To continue working with this certificate, some steps should be taken to "accept" the certificate before access to the site is permitted. If you are using the Mozilla Firefox browser, this usually occurs only on the first access to the server, after which the certificate is stored in the browser database and marked as trusted. However, with other browsers, the insecure connection warning might be displayed every time you access the server.

        This scenario is suitable for testing purposes, or for running the program on the company's internal networks. If you want to make these consoles available to external users, your organization should obtain a certificate signed by a well-known certificate authority, which verifies that the server actually has the name it is accessed by and that this server belongs to the given organization.

    5. Click Download Android Agent.

    Localtab
    titleInviting via email
    Panel
    borderColor#11375B
    bgColor#ffffff
    borderWidth2
    1. Sign in to the Device Management console.

      Expand
      titleClick here for more information.
      Panel
      borderColor#11375B
      bgColor#ffffff
      borderWidth2
      Insert excerpt
      Accessing the WSO2 IoT Server Consoles
      Accessing the WSO2 IoT Server Consoles
      nopaneltrue
    2. Click Invite by Email.
    3. Enter the email address of the users who needsto enroll their device with WSO2 IoT Server, and click Send Invite(s).
      If you entered your email address, you will receive the registration email.
    4. Click on the link in the email to download the Android agent.
    5. Click Download Android Agent.

    Localtab
    titleDownloading the APK
    Panel
    borderColor#11375B
    bgColor#ffffff
    borderWidth2
    1. Signin tothe Device Management console.

      Expand
      titleClick here for more information.
      Panel
      borderColor#11375B
      bgColor#ffffff
      borderWidth2
      Insert excerpt
      Accessing the WSO2 IoT Server Consoles
      Accessing the WSO2 IoT Server Consoles
      nopaneltrue
    2. Click Download APK.
    3. Copy the downloaded file to your mobile device.

...