|
|
|
|
Devuelve la lista de servicios proporcionados por un dispositivo Bluetooth. nDeviceNumber is int sListServices is string sTmpString is string // Clears the LIST_Services control ListDeleteAll(LIST_Services) // Returns the list of services for the selected device IF TableSelect(TABLE_Devices) <> -1 THEN // Device identifier nDeviceNumber = TABLE_Devices.COL_ID[TABLE_Devices] // Retrieve the list of services sListServices = BTListService(nDeviceNumber) // Add services into the list FOR EACH STRING sTmpString OF sListServices SEPARATED BY CR ListAdd(LIST_Services, sTmpString) END ELSE Info("Select a Bluetooth device") END
Sintaxis
<Result> = BTListService(<Device identifier> [, <Level of details> [, <Radio identifier>]])
<Result>: Cadena de caracteres Lista de los servicios soportados por el dispositivo. Esta lista tiene el siguiente formato:- en modo simple: <Nombre servicio 1> + CR + ... + CR +
- en modo detallado: +TAB+ +TAB+ +CR+ ... + + TAB + + TAB +
<Device identifier>: Integro Identificador del dispositivo Bluetooth a utilizar. Este identificador es devuelto por BTListDevice o Dispositivo BTSelectDevice. <Level of details>: Constante opcional de tipo Integer Nivel de detalle de los resultados: | | btDetailedList | contiene la lista de servicios en modo detallado. | btSimpleList (Valor predeterminado) | contiene la lista de servicios en modo simple. |
<Radio identifier>: Entero opcional Identificador de la radio Bluetooth a utilizar. Este identificador es devuelto por BTListRadio. Observaciones - Esta versión sólo es compatible con las pilas bluetooth de Microsoft, Bluesoleil y Broadcom (Widcomm). Las pilas de Broadcom (Widcomm) no están disponibles en modo de 64 bits.
- Para conocer la pila utilizada, llame a BTStack. Para obtener más información, consulte ¿Qué pilas utilizar?
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|