|
|
|
|
|
- Necessary version
- Bluetooth Low Energy
- Required permissions
BeaconDetectPrecise (Function) In french: BeaconDétectePrécis Used to find the Beacons near the device.
sUUID is string = "f4231ab6-5ef2-6c99-4229-af6c72e0446e"
groupeMusée is beaconGroup
groupeMusée.UUID = sUUID
BeaconDetectPrecise(groupeMusée, ProcDétection)
INTERNAL PROCEDURE ProcDétection(tabInfo is array of beaconDetectionInfo)
nDistanceMin is int
BaliseLaPlusProche is beaconDetectionInfo
FOR EACH Information OF tabInfo
IF nDistanceMin = 0 _OR_ Information.Distance < nDistanceMin
BaliseLaPlusProche = Information
END
END
AfficheInfoOeuvre(BaliseLaPlusProche.Major, BaliseLaPlusProche.Minor)
END
Syntax
<Result> = BeaconDetectPrecise(<Group of Beacons> , <WLanguage procedure>)
<Result>: Boolean - True if the detection was started,
- False otherwise. To get more details on the error, use ErrorInfo.
<Group of Beacons>: beaconGroup variable Name the of beaconGroup variable that describes the searched group of Beacons. <WLanguage procedure>: Procedure name Name of the WLanguage procedure ("callback") called when a new list of Beacons is detected. This procedure has the following format: PROCEDURE <Procedure Name>(<Array of Detection Info>) where <Array of detection info> is a beaconDetectionInfo variable that describes the information about the detected Beacons (identifiers, Major/Minor numbers, distance, etc.) Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|