PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WINDEV Mobile 23 feature!
  • Properties specific to the description of beaconDetectionInfo variables
  • Reinitialization
  • Functions that use the beaconDetectionInfo variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The beaconDetectionInfo type is used to describe information regarding a Beacon tag detected by BeaconDetectPrecise. The characteristics of this Beacon tag can be read by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
// Start detecting tags
BeaconDetectPrecise(group, ProcDetection)
INTERNAL PROCEDURE ProcDetection(arrInfo is array of beaconDetectionInfo)
nMinDistance is int
NearestTag is beaconDetectionInfo
FOR EACH Info OF arrInfo
IF nMinDistance = 0 _OR_ Info..Distance < nMinDistance
NearestTag = Info
END
END
END
Remarks

Properties specific to the description of beaconDetectionInfo variables

The following properties can be used to handle a beaconDetectionInfo variable:
Property nameType usedEffect
DistanceRealDistance (in meters) between the device and the Beacon tag. The measurement precision depends on the device and on whether the Beacon tag is found in a closed space (a bag for example).
This property is available in read-only.
iPhone/iPad Information not available. Therefore, the call to ..Distance will always return -1 (invalid value).
MajorIntegerMajor number of Beacon tag (integer included between 0 and 65535).
This property is available in read-only.
MinorIntegerMinor number of Beacon tag (integer included between 0 and 65535).
This property is available in read-only.
ProximityInteger constantProximity of Beacon tag with the device:
  • biDistant: tag beyond 3 meters.
  • biNear : tag between 0,5 and 3 meters.
  • biVeryClose : tag at less than 0,5 meter.
This property is available in read-only.
UUIDCharacter stringIdentifier (or Proximity UUID) associated with the Beacon tag. In most cases, this identifier corresponds to the organization or to the person to which the tag belongs.
This identifier includes 32 hexadecimal digits separated into 5 groups. Each group must contain the following number of digits :
  • 1st group : 8 digits
  • 2nd group : 4 digits
  • 3rd group : 4 digits
  • 4th group : 4 digits
  • 5th group : 12 digits
The different groups are separated by a dash.
Example of valid identifier: f4231ab6-5ef2-6c99-4229-af6c72e0446e
This property is available in read-only.

Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Reinitialization

To reinitialize the content of a beaconDetectionInfo variable, you have the ability to use VariableReset.

Functions that use the beaconDetectionInfo variables

Versions 23 and later
BeaconDetectBackground
New in version 23
BeaconDetectBackground
BeaconDetectBackground
Allows the application to be notified when the device enters into or exits from an area corresponding to the emission radius of a set of Beacon tags.
Versions 23 and later
BeaconDetectPrecise
New in version 23
BeaconDetectPrecise
BeaconDetectPrecise
Used to find the Beacon tags nearby the device.
Versions 23 and later
BeaconStopBackgroundDetection
BeaconStopBackgroundDetection
Stops one or more detections of Beacon tags in background.
Minimum required version
  • Version 23
Comments
Click [Add] to post a comment