AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones Beacon
  • Properties specific to beaconDetectionInfo variables
  • Reinitialization
  • Functions that use beaconDetectionInfo variables
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The beaconDetectionInfo type is used to describe the information relative to a Beacon detected with BeaconDetectPrecise. The characteristics of this Beacon can be read using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Ejemplo
// Start detecting tags
BeaconDetectPrecise(group, ProcDetection)
INTERNAL PROCEDURE ProcDetection(arrInfo is array of beaconDetectionInfo)
nMinDistance is int
NearestBeacon is beaconDetectionInfo
FOR EACH MyInfo OF arrInfo
IF nMinDistance = 0 _OR_ MyInfo..Distance < nMinDistance
NearestBeacon = Info
END
END
END
Propiedades

Properties specific to beaconDetectionInfo variables

The following properties can be used to manipulate a variable of type beaconDetectionInfo:
Property nameType usedEffect
DistanceRealDistance (in meters) between the device and the Beacon. The accuracy of the measurement can vary from one device to another but also if the Beacon is in a closed space (e.g., a bag).
This property is read-only.
iPhone/iPadIOS WidgetMac Catalyst Information not available. Therefore, the call to ..Distance will always return -1 (invalid value).
MajorIntegerMajor number of the Beacon (integer between 0 and 65535).
This property is read-only.
MinorIntegerMinor number of the Beacon (integer between 0 and 65535).
This property is read-only.
ProximityInteger constantProximity of the Beacon to the device:
  • biEremote tag beyond 3 meters.
  • biProche tag between 0.5 and 3 metres.
  • biTrèsProche tag less than 0.5 meters away.
This property is read-only.
UUIDCharacter stringIdentifier (or Proximity UUID) associated with the Beacon. In most cases, this identifier corresponds to the organization or to the person to which the Beacon 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 a valid identifier: f4231ab6-5ef2-6c99-4229-af6c72e0446e
This property is read-only.
Observaciones

Reinitialization

You can use VariableReset to reset the contents of a variable of type beaconDetectionInfo.

Functions that use beaconDetectionInfo variables

BeaconDetectBackgroundNotifies the application when the device enters or leaves the transmission range of a set of Beacons.
BeaconDetectPreciseUsed to find the Beacons near the device.
BeaconStopBackgroundDetectionDetiene una o varias detecciones de baliza en segundo plano.
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local