|
|
|
|
BTEnableService( Función) Activa un servicio proporcionado por un dispositivo Bluetooth. nDeviceNumber is int sService is string // The devices are stored in a Table control nDeviceNumber = TABLE_Device.COL_ID[TABLE_Device] // The services are listed in a List Box control sService = LIST_Services[LIST_Services] // Enable the selected service in the List Box control IF BTEnableService(nDeviceNumber, sService) = True THEN // Fill the List Box control with the enabled services ListAdd(LIST_EnabledServices, sService) ELSE Trace("Device: " + nDeviceNumber + ", service: " + sService) Info(ErrorInfo(errFullDetails)) END Sintaxis
<Result> = BTEnableService(<Device identifier> , <Service name> [, <Radio identifier>])
<Result>: booleano - True si se activó el servicio,
- False en caso contrario. ErrorInfo devuelve más información sobre el error.
<Device identifier>: Integro Identificador del dispositivo Bluetooth a utilizar. Este identificador es devuelto por BTListDevice. <Service name>: Cadena de caracteres Nombre del servicio a habilitar. El nombre de los servicios es devuelto por Servicio BTList. <Radio identifier>: Entero opcional Identificador de la radio Bluetooth a utilizar. Este identificador es devuelto por BTListRadio. Si no se especifica este parámetro, se utilizarán todas las radios disponibles. Observaciones Esta versión sólo soporta las pilas de bluetooth de Microsoft y Bluesoleil.. Para conocer la pila utilizada, llame a BTStack.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|