PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Finds a device based on its unique name (UDN).
Example
Device is upnpDevice
Device = UPNPFindDevice("uuid:72047cc4-1dd2-11b2-87b7-0000aaae85f5", 51300)
IF ErrorOccurred THEN
Info(ErrorInfo(errFullDetails))
ELSE
Info("Device found")
END
Syntax
<Result> = UPNPFindDevice(<Device Name> , <Port> [, <Address> [, <Time-out>]])
<Result>: upnpDevice variable
Name of the upnpDevice variable containing the characteristics of the sought device.
<Device Name>: Character string (with quotes)
Unique name (UDN) of device to find.
<Port>: Integer
Port number used for the search.
<Address>: Character string with optional quotes
Address on which the search socket is created.
<Time-out>: Optional integer or optional Duration
Maximum time-out expressed in seconds. This parameter can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (1 s or 10 ms for example).
    New in version 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
This parameter corresponds to 5 seconds by default.
Remarks
If the device is not found, the ErrorOccurred variable is set to True.
Components
WINDEV wd230device.dll
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment