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 / Funciones OBEX
  • Location of the copied file
  • Transferring files infrared ports
  • Limitation
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Sends a file to a device that supports the OBEX protocol.
Ejemplo
// Bluetooth connection
IF BTConnectDevice(COL_ID, "123") = True THEN
	// OBEX connection
	nIDOBEXCnt = OBEXConnect(obexBluetooth, COL_MAC)
	// Transfer the file
	TABLE_DEVICES[TABLE_DEVICES].BackgroundColor = ...
				  SWITCH (OBEXSendFile(nIDOBEXCnt, sFile), ...
						White, PastelRed)
	// End of transfer
	OBEXDisconnect(nIDOBEXCnt)
ELSE
	 Error("Unable to connect to " + COL_DEVICE, ErrorInfo())
END
Sintaxis
<Result> = OBEXSendFile(<Identifier of OBEX connection> , <Local file path> [, <Remote file path>])
<Result>: Boolean
  • True if the transfer was successful,
  • False otherwise. ErrorInfo returns more information on the error.
Attention: If the file is refused by the remote machine, the sender is not informed: the ErrorInfo function contains no specific error.. ErrorInfo only contains the transmission error messages.
<Identifier of OBEX connection>: Integer
Identifier of the OBEX connection to use. This identifier is returned by OBEXConnect.
<Local file path>: Character string
Name and full path of the file to send.
<Remote file path>: Optional character string
Name and path of the file on the remote device. If this parameter is not specified, the file keeps the same name and it is copied into the transfer directory configured on the OBEX device.
Observaciones

Location of the copied file

The file is copied into the transfer directory configured on the OBEX device used. If <Remote File Path> is specified, the specified path will be relative to the transfer directory.

Transferring files infrared ports

When files are transfered via infrared ports, the transfer is completed once OBEXSendFile has been executed. However, Windows keep the transfer window opened (to manage a possible new file transfer). This window is only closed when disconnecting (OBEXDisconnect).

Limitation

Only the Microsoft bluetooth stacks are supported by this function. To get the stack used, call BTStack.
For more details, see Which stacks to use?
Componente: wd300com.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: 27/03/2025

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