Beacon management

Pair a beacon to a vehicle

The following function allows you to create a logical pairing between a beacon and a vehicle. The results of data analysis containing a beacon will be assigned to the vehicle to which the beacon has been paired with.

fun addBeaconToVehicle(
    beacon: Beacon,
    vehicle: Vehicle,
    listener: VehicleAddBeaconQueryListener
)

All fields are required. If you don't know the uniqueId of your beacons, just add an empty field.

Check the VehicleBeaconStatus value to ensure your beacon is correctly paired:

Replace the beacon of a vehicle

If a beacon is already paired with a vehicle, it can be replaced. The following function is used to change the beacon paired with a vehicle:

fun changeBeaconToVehicle(
    beacon: Beacon,
    vehicle: Vehicle,
    listener: VehicleChangeBeaconQueryListener
)

This method have the following parameters:

All fields are required. If you don't know the uniqueId of your beacons, just add an empty field.

Check the VehicleBeaconStatus value to ensure your beacon is correctly changed:

Unpair the beacon from a vehicle

The following function can be used to delete the pairing between a beacon and a vehicle:

fun removeBeaconToVehicle(
    vehicle: Vehicle,
    listener: VehicleRemoveBeaconQueryListener
)

This method have the following parameter:

Check the VehicleBeaconRemoveStatus value to ensure your beacon is correctly unpaired:

Last updated