This section provides the details on how the advanced device search functions. WSO2 IoT Server maintains the details of the devices that are enrolled with it by running a background task. This task adds a few operations to the devices such as the
device_location and the
application_list. Further, you can add more device operations and execute the advanced search as explained below:
This feature is only available on the WSO2 IoT Server 3.10-Update1 pack. Download the WSO2 IoT Server 3.10-Update1 pack to try it out.
Navigate to the respective device types XML file in
Add the new operations under the task configurations operations tag as shown below:
<RecurrentTimes>define how often the above operation should be called when running the task operation
Example: If you define it as 5 that means the operation will be added to the task at every 5th run of the task.
The user executes the advanced search for devices via the WSO2 device management console or the REST API.
- WSO2 IoTS goes through the search request received via the console or the REST API to check for the following details:
Checks if the values provided for Key field match the
EVICE_DETAILSdatabase table properties.Click here for more information on the DEVICE_DETAILS table properties
- If the value you defined for the Key field is not a property in the
EVICE_DETAILStable, it will then form a
key:valuepair and pass the details to the
EVICE_INFOdatabase table in WSO2 IoTS.
- Once WSO2 IoTS aggregates all the results for the given search query the final search result will be provided.