ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / OBEX functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
OBEXConnect (Function)
In french: OBEXConnecte
Used to connect to a device that supports the OBEX protocol.
Reminder The OBEX protocol is a data transfer protocol that can be used via infrared beams and Bluetooth.
Example
AdresseMAC is string
// Récupération de l'adresse MAC du périphérique Bluetooth
// L'adresse est stockée dans une colonne de table
AdresseMAC = TABLE_Appareils.COL_AdrMAC[TABLE_Appareils]
// Connexion OBEX
SAI_IDOBEX = OBEXConnect(obexBluetooth, AdresseMAC)
Syntax
<Result> = OBEXConnect(<Type of Device> [, <Device Address>])
<Result>: Integer
Connection ID. This identifier will be used by the OBEX functions. This function returns no error. Indeed, the connection will be actually established when the next OBEX function is used.
<Type of Device>: Integer constant
Type of device used to exchange data:
obexBluetoothTransport of data performed by Bluetooth
obexInfraredTransport of data performed by infrared
<Device Address>: Optional character string
Address of device used (for Bluetooth devices only): this corresponds to the MAC address (obtained by BTInfoDevice or BTListDevice)..
Remarks
Only the Microsoft bluetooth stacks are supported by this function. To get the stack used, call BTStack.
For more details, see Which stacks to use?
Component: wd300com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help