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:

  1. Vision
    Corresponds to an image that has been recognized. As of today, this sensor never gets updated.
  2. 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 signal
    • distance: The estimated distance in meters between the beacon and the smartphone
  3. 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
NameTypeDescription
PxlEventService service

PixLive SDK Event service

Example
<div pxl-sensor-update="sensorUpdate(sensorId, sensorType, sensor)">
 ...
</div>