This article shows you how to change tag update rates using the API.
None. You can use this article on its own.
Before you start, remember:
Add the Ubisense references to your application
This guide shows you how to change tag update rates programmatically. Tags are normally configured to update at a slower rate when they are not moving, and a faster rate when they are moving. This behaviour is easily set up in Location Engine Configuration. This article is intended for applications that require tag update rates to be calculated on the fly as your application is running.
There are 2 schemas that are relevant:
Ubisense.ULocationEngine.TagConfigurationUpdate
and
Ubisense.ULocationEngine.TagConfiguration
. The tag configuration update schema contains remote operations that
you can use to update the relations in the tag configuration schema.
|
The TagHasParameters relation in the tag configuration schema contains
fields for both the filter used and the update rate parameters. In this example,
we do not want to change the filter that is used. We do want to change the update
rates, which are stored in the "QoS" field.
Therefore, the first task is to find the filter that is used by reading the local cache:
|
Now use the tag configuration update schema to update the TagHasParameters
relation with a new row for the tag. This example shows the use of insert_tag_parameters.
You can also insert parameters for a range of tags using insert_tag_range_parameters.
In the attached example, _tag, _lower, _upper and
_speed_threshold are inputs provided by the caller of the method.
|