PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Name of the known services
  • Limitation
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
Creates a socket using a Bluetooth device.
Versions 16 and later
Android This function is now available for the Android applications.
New in version 16
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Example
// Create the Bluetooth socket and specify a service name
IF SocketCreateBluetooth(gsNameBTSocket, "SerialPortServiceClass_UUID") = False THEN
Error("Unable to create the Bluetooth socket", ErrorInfo(errFullDetails))
RETURN
END
// Create the Bluetooth socket by giving a "GUID" identifier
// specified in the specifications of a device (robot, ...)
IF SocketCreateBluetooth(gsNameBTSocket, "5") = False THEN
Error("Unable to create the Bluetooth socket", ErrorInfo(errFullDetails))
RETURN
END
Syntax
<Result> = SocketCreateBluetooth(<Socket Name> , <Service> [, <Description>])
<Result>: Boolean
  • True if the socket was created,
  • False otherwise. To find out the error details, use ErrorInfo.
<Socket Name>: Character string (with quotes)
Name that will be given to the socket. This name will be used by all socket functions.
Caution: the socket name is case sensitive.
<Service>: Character string (with quotes)
Corresponds to:
  • the name of a known service (see the Notes).
  • the GUID of a service.
<Description>: Optional character string (with quotes)
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 are using another service, its identifier must be specified directly (GUID).

Limitation

Only the Microsoft Bluetooth stack is supported by this function. See Which stacks to use? for more details
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Android wd230android.jar
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment