ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / DLNA/UPnP functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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> [, <Timeout>]])
<Result>: Array of upnpDevice variables
Name of the array of upnpDevice variables containing the list of devices found on the network.
<Type>: Character string
Type of devices to list.
<Port>: Integer
Port number used for the search.
<Address>: Optional character string
Address on which the search socket is created.
<Timeout>: Optional integer
Maximum timeout expressed in seconds. This parameter can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s or 10 ms).
This parameter corresponds to 5 seconds by default.
Component: wd290device.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help