Commands for beacons
When you call the wladm Ant task, you can include various commands for the beacons and beacon triggers. A beacon is a piece of information that is associated with an iBeacon. A beacon trigger is an action that a mobile device runs in relation to an iBeacon, when there is an association between the beacon and the beacon trigger.
The list-beacons command
Attribute | Description | Required | Default |
---|---|---|---|
uuid | UUID (32 hex digits) of the beacons to search for. | Only if major or minor are specified | wild |
major | Major number of the beacons to search for. | No | wild |
minor | Minor number of the beacons to search for. | No | wild |
output | Name of output file. | No | |
outputproperty | Name of Ant property for the output. | No |
Example:
<list-beacons uuid="496E-974C-CEDE-8679-1CF9-A8EF-2E51-45B6"/>
This command is based on the Beacons (GET) REST service.
The set-beacon command
Attribute | Description | Required | Default |
---|---|---|---|
file | Name of the input file. | Yes | Not available |
The show-beacon command
Attribute | Description | Required | Default |
---|---|---|---|
uuid | UUID (32 hex digits) of the beacon. | Yes | Not available |
major | Major number of the beacon. | Yes | Not available |
minor | Minor number of the beacon. | Yes | Not available |
output | Name of output file. | No | |
outputproperty | Name of Ant property for the output. | No |
Example:
<show-beacon uuid="496E-974C-CEDE-8679-1CF9-A8EF-2E51-45B6" major="1" minor="23"/>
This command is based on the Beacons (GET) REST service.
The remove-beacon command
Attribute | Description | Required | Default |
---|---|---|---|
uuid | UUID (32 hex digits) of the beacon. | Yes | Not available |
major | Major number of the beacon. | Yes | Not available |
minor | Minor number of the beacon. | Yes | Not available |
Example:
<remove-beacon uuid="496E-974C-CEDE-8679-1CF9-A8EF-2E51-45B6" major="1" minor="23"/>
This command is based on the Beacons (DELETE) REST service.
The list-beacon-triggers command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
output | Name of output file. | No | |
outputproperty | Name of Ant property for the output. | No |
Example:
<list-beacon-triggers runtime="worklight"/>
This command is based on the Beacon Triggers (GET) REST service.
The set-beacon-trigger command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
file | Name of the input file. | Yes | Not available |
Example:
<set-beacon-trigger runtime="worklight" file="entrance-alert.xml"/>
This command is based on the Beacon Triggers (PUT) REST service.
The show-beacon-trigger command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
name | Name of the beacon trigger. | Yes | Not available |
output | Name of output file. | No | |
outputproperty | Name of Ant property for the output. | No |
Example:
<show-beacon-trigger runtime="worklight" name="entrance-alert"/>
This command is based on the Beacon Trigger (GET) REST service.
The delete-beacon-trigger command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
name | Name of the beacon trigger. | Yes | Not available |
Example:
<delete-beacon-trigger runtime="worklight" name="entrance-alert"/>
This command is based on the Beacon Trigger (DELETE) REST service.
The list-beacon-trigger-associations command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
app | Name of an app. | Yes | Not available |
uuid | UUID (32 hex digits) of the beacon. | Only if major or minor are specified | |
major | Major number of the beacon. | No | |
minor | Minor number of the beacon. | No | |
triggerName | Name of the beacon trigger. | No | |
output | Name of output file. | No | |
outputproperty | Name of Ant property for the output. | No |
Examples:
<list-beacon-trigger-associations runtime="worklight" app="productguide"/>
<list-beacon-trigger-associations runtime="worklight" app="productguide" uuid="496E-974C-CEDE-8679-1CF9-A8EF-2E51-45B6" major="1" minor="23"/>
<list-beacon-trigger-associations runtime="worklight" app="productguide" triggerName="entrance-alert"/>
This command is based on the Associate beacons and triggers (GET) REST service.
The set-beacon-trigger-association command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
app | Name of an app. | Yes | Not available |
uuid | UUID (32 hex digits) of the beacon. | Yes | Not available |
major | Major number of the beacon. | Yes | Not available |
minor | Minor number of the beacon. | Yes | Not available |
triggerName | Name of the beacon trigger. | Yes | Not available |
Example:
<set-beacon-trigger-association runtime="worklight" app="productguide" uuid="496E-974C-CEDE-8679-1CF9-A8EF-2E51-45B6" major="1" minor="23" triggerName="entrance-alert"/>
This command is based on the Associate beacons and triggers (PUT) REST service.
The show-beacon-trigger-association command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
app | Name of an app. | Yes | Not available |
uuid | UUID (32 hex digits) of the beacon. | Yes | Not available |
major | Major number of the beacon. | Yes | Not available |
minor | Minor number of the beacon. | Yes | Not available |
triggerName | Name of the beacon trigger. | Yes | Not available |
output | Name of output file. | No | |
outputproperty | Name of Ant property for the output. | No |
Example:
<show-beacon-trigger-association runtime="worklight" app="productguide" uuid="496E-974C-CEDE-8679-1CF9-A8EF-2E51-45B6" major="1" minor="23" triggerName="entrance-alert"/>
This command is based on the Associate beacons and triggers (GET) REST service.
The delete-beacon-trigger-association command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
app | Name of an app. | Yes | Not available |
uuid | UUID (32 hex digits) of the beacon. | Yes | Not available |
major | Major number of the beacon. | Yes | Not available |
minor | Minor number of the beacon. | Yes | Not available |
triggerName | Name of the beacon trigger. | Yes | Not available |
Example:
<delete-beacon-trigger-association runtime="worklight" app="productguide" uuid="496E-974C-CEDE-8679-1CF9-A8EF-2E51-45B6" major="1" minor="23" triggerName="entrance-alert"/>
This command is based on the Associate beacons and triggers (DELETE) REST service.