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
UPNPListDevice (Function)
In French: UPNPListePériphérique
Lists the UPNnP devices available on the network.
Example
WINDEVWindows
arrDevices is array of upnpDevice
arrDevices = UPNPListDevice("upnp:rootdevice", 51300)
IF ErrorOccurred THEN
Info(ErrorInfo(errFullDetails))
ELSE
InitDeviceList()
END
iPhone/iPad
arrDevices is array of upnpDevice
sMyString is ANSI string = "upnp:rootdevice"
arrDevices = UPNPListDevice(sMyString, 51300)
IF ErrorOccurred THEN
Info(ErrorInfo(errFullDetails))
ELSE
InitDeviceList()
END
Syntax
<Result> = UPNPListDevice(<Type> , <Port> [, <Address> [, <Time-out>]])
<Result>: Array of upnpDevice variables
Name of the array of upnpDevice variables containing the list of devices found on the network.
<Type>: Character string (with quotes)
Type of devices to list.
<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
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.
Components
WINDEV wd230device.dll
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment