Angular directive
pxlSensorUpdate source
- Attribute
Expression that is evaluated when a sensor parameter changes.
The ID of the sensor, the type of sensor, and the sensor parameters are passed as parameters. The types and IDs are defined hereafter.
Three types of sensors are defined:
Vision
Corresponds to an image that has been recognized. As of today, this sensor never gets updated.iBeacon
Corresponds to an iBeacon that is in the required proximity of the smartphone. The ID is defined to be:BeaconUUID_Major_Minor
The sensor object contains the following two properties:
rssi
: The RSSI in dbm of the received beacon signaldistance
: The estimated distance in meters between the beacon and the smartphone
VidiBeacon
Corresponds to a VidiBeacon that is in the required proximity of the smartphone. The ID is defined to be the VidiBeacon serial.The sensor object contains the following property:
rssi
: The RSSI in dbm of the received beacon signal
Parameters
Name | Type | Description |
---|---|---|
PxlEventService | service |
PixLive SDK Event service |
Example
<div pxl-sensor-update="sensorUpdate(sensorId, sensorType, sensor)">
...
</div>