|
|
|
|
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> = Servicio BTList(<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 + <Nombre del servicio N>
- en modo detallado: <Nombre del Servicio 1> + TAB + <Descripción del Servicio 1> + TAB + <Identificador del Servicio 1> + CR + ... + <Nombre del Servicio N> + TAB + <Descripción del Servicio N> + TAB + <Identificador del Servicio N>
<Device identifier>: Integro Identificador del dispositivo Bluetooth a utilizar. Este identificador es devuelto por BTListDevice o por Dispositivo BTSelectDevice. <Level of details>: Constante opcional de tipo Integer Nivel de detalle de los resultados: | | btLista detallada | <Resultado> contiene la lista de servicios en modo detallado. | btListaSimple (Valor predeterminado) | <Resultado> 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.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|