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 | ||
---|---|---|
| ||
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. |
- Download the WSO2 IoT Server sample pack.
Create a directory named
samples
in the<IoT_HOME>/core
directory and copy the downloaded file to it.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
Start WSO2 IoT Server.
If you started WSO2 IoT Server previously, stop the core and analytics profiles usingCRTL+C
, and restart the two profiles in the given order.
Restart the servers using the following command:Code Block ./wso2server.sh
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.
...
Navigate to the App Store using the following URL:
https://<IoT_HOST>:9443/store
Sign in using alex and alexuser as the username and password.
Click the Catalog mobile application, and click Install.
- Select Instant install, and click Yes.
- 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. - 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?
- For more information, take Take a look at the screencast showcasing the WSO2 IoT Server functionality.
- Want to know more on what you can do by enrolling an Android device with WSO2 IoT Server? For more information, see Working with Android.