AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Bluetooth
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 App
Otros
Procedimientos almacenados
Devuelve la lista de servicios proporcionados por un dispositivo Bluetooth.
Ejemplo
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.
Observaciones
Componente: wd270com.dll
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local