ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Sockets
  • Name of the known services
  • Limitation
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Creates a socket using a Bluetooth device.
Example
// Création du socket Bluetooth en spécifiant un nom de service
IF SocketCreateBluetooth(gsNomSocketBT, "SerialPortServiceClass_UUID") = False THEN
	Error("Impossible de créer le socket Bluetooth", ErrorInfo(errFullDetails))
	RETURN
END
// Création du socket Bluetooth en donnant un identifiant "GUID"
// indiqué dans les spécifications d'un périphérique (automate, ...)
IF SocketCreateBluetooth(gsNomSocketBT, "5") = False THEN
	Error("Impossible de créer le socket Bluetooth", ErrorInfo(errFullDetails))
	RETURN
END
Syntax
<Result> = SocketCreateBluetooth(<Socket name> , <Service> [, <Description>])
<Result>: Boolean
  • True if the socket was created,
  • False otherwise. If an error occurs, you can get more details on the error with ErrorInfo.
<Socket name>: Character string
Name that will be given to the socket. This name will be used by all socket functions.
Warning: the socket name is "case-sensitive".
<Service>: Character string
Corresponds to:
  • the name of a known service (see the Notes).
  • the GUID of a service.
<Description>: Optional character string
Description of the socket used by the Bluetooth discovery service.
Remarks

Name of the known services

The known services are the standard services described in the Bluetooth standard (therefore independent of the target platform). The names of the accepted services are as follows:
  • ServiceDiscoveryServerServiceClassID_UUID
  • BrowseGroupDescriptorServiceClassID_UUID
  • PublicBrowseGroupServiceClass_UUID
  • SerialPortServiceClass_UUID
  • LANAccessUsingPPPServiceClass_UUID
  • DialupNetworkingServiceClass_UUID
  • IrMCSyncServiceClass_UUID
  • OBEXObjectPushServiceClass_UUID
  • OBEXFileTransferServiceClass_UUID
  • IrMCSyncCommandServiceClass_UUID
  • HeadsetServiceClass_UUID
  • CordlessTelephonyServiceClass_UUID
  • AudioSourceServiceClass_UUID
  • AudioSinkServiceClass_UUID
  • AVRemoteControlTargetServiceClass_UUID
  • AdvancedAudioDistributionServiceClass_UUID
  • AVRemoteControlServiceClass_UUID
  • VideoConferencingServiceClass_UUID
  • IntercomServiceClass_UUID
  • FaxServiceClass_UUID
  • HeadsetAudioGatewayServiceClass_UUID
  • WAPServiceClass_UUID
  • WAPClientServiceClass_UUID
  • PANUServiceClass_UUID
  • NAPServiceClass_UUID
  • GNServiceClass_UUID
  • DirectPrintingServiceClass_UUID
  • ReferencePrintingServiceClass_UUID
  • ImagingServiceClass_UUID
  • ImagingResponderServiceClass_UUID
  • ImagingAutomaticArchiveServiceClass_UUID
  • ImagingReferenceObjectsServiceClass_UUID
  • HandsfreeServiceClass_UUID
  • HandsfreeAudioGatewayServiceClass_UUID
  • DirectPrintingReferenceObjectsServiceClass_UUID
  • ReflectedUIServiceClass_UUID
  • BasicPringingServiceClass_UUID
  • PrintingStatusServiceClass_UUID
  • HumanInterfaceDeviceServiceClass_UUID
  • HardcopyCableReplacementServiceClass_UUID
  • HCRPrintServiceClass_UUID
  • HCRScanServiceClass_UUID
  • CommonISDNAccessServiceClass_UUID
  • VideoConferencingGWServiceClass_UUID
  • UDIMTServiceClass_UUID
  • UDITAServiceClass_UUID
  • AudioVideoServiceClass_UUID
  • PnPInformationServiceClass_UUID
  • GenericNetworkingServiceClass_UUID
  • GenericFileTransferServiceClass_UUID
  • GenericAudioServiceClass_UUID
  • GenericTelephonyServiceClass_UUID
  • ActiveSyncClass_UUID
If you use another service, specify its identifier directly (GUID).

Limitation

Only the Microsoft Bluetooth stack is supported by this function. 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