Versions Compared

Key

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

...

  1. Open the <IOTS_HOME>/conf/cdm-config.xml file.
  2. Configure the PublishDeviceInfoResponse parameter as true

    Code Block
    <OperationAnalyticsConfiguration>    
        <PublishLocationResponse>false</PublishLocationResponse>
        <PublishDeviceInfoResponse>true</PublishDeviceInfoResponse>
        <PublishOperationResponse>
            <Enabled>false</Enabled>
            <Operations>
                <Operation>*</Operation>
            </Operations>
        </PublishOperationResponse>
    </OperationAnalyticsConfiguration>

    WSO2 IoT Server can now publish the device information to WSO2 Data Analytics Server (WSO2 DAS). The published data can then be stored and annalyzed analyzed using the steps given below.

...

The script you wrote above summarizes the battery data of the devices and adds it to the Battery_Level_Per_Hour database table. Now the administrator can check the data in the table and see the devices that did not have a battery level of 50% or above at the time of pushing the applications to the devices, and check with those device owners if the application was installed successfully.

To check out the data that was summarized and added to the table, follow the steps given below:

...

The data is displayed in the table format. Now, MobX is able to find out the battery levels of each device on an hourly basis.

What's next

...

Try out the tutorials listed below and see how the extensions described above are put into use.

...

Sending Operations to Devices Based on Time

...