Integrating with the WSO2 IoT Analytics Profile
This section explains how to configure WSO2 IoT Server if you have changed the default ports or how to configure WSO2 IoT Server in a production environment, to publish events received from the Android agent.Â
You don't need to follow the steps given below if you are not running in a production environment or if you are using the default settings of WSO2 IoT Server.
Follow the steps given below:
- Configure theÂ
<IoT_HOME>/conf/etc/
 file in the production environment.device-analytics-config.xml
Skip this step if you are running WSO2 IoT Server in a developer environment.ReceiverServerURL
: The URL must be in theÂtcp://<HOSTNAME>:<PORT>
 format. The default HTTP port for the analytics profile in WSO2 IoT Server is 7613.If you want to change the TCP URL, see Setting up Multi Receiver and Load Balancing Data Agent in the WSO2 Data Analytics Server (DAS) documentation.
AdminUsername
: Provide the administrator username. The default username isÂadmin
.AdminPassword
:Â Provide the password of the administrator. The default password isÂadmin
.
Example: Single receiver
<AnalyticsConfiguration> <Enabled>true</Enabled> <ReceiverServerUrl>tcp://localhost:7613</ReceiverServerUrl> <AdminUsername>admin</AdminUsername> <AdminPassword>admin</AdminPassword> </AnalyticsConfiguration>
Configure the URL attribute in the
<IoT_HOME>/conf/analytics/analytics-data-config.xml
 file as follows in a production environment:Âhttp://<HOSTNAME>:9445
The default HTTPS port of the analytics profile in WSO2 IoT Server is 9445.