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 all three 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.
Info |
---|
Check out the WSO2 IoT Server dashboard by signing in to the WSO2 IoT Server console using chris as the username and chrisadmin as the password: |
...