Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Phidget.EnableServerDiscovery

Enables the dynamic discovery of servers that publish their identity to the network.

Component Version macOS Windows Linux Server iOS SDK
Phidget 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "Phidget.EnableServerDiscovery"; ServerType )   More

Parameters

Parameter Description Example
ServerType Pass none, deviceListener, Device, DeviceRemote, WWWListener, WWW, WWWRemote or SBC. "DeviceRemote"

Result

Returns OK or error.

Description

Enables the dynamic discovery of servers that publish their identity to the network.
Currently Multicast DNS is used to discover and publish Phidget servers.

To connect to remote Phidgets, call this function with server type DeviceRemote.
Phidget.EnableServerDiscovery must be called once for each server type your program requires. Multiple calls for the same server type are ignored
This call will fail with the unsupported error if your computer does not have the required mDNS support. We recommend using Bonjour Print Services on Windows and Mac, or Avahi on Linux.

Examples

Watch for remote devices:

MBS( "Phidget.EnableServerDiscovery"; "DeviceRemote" )

See also

Release notes

Example Databases

Blog Entries

This function is free to use.

Created 16th November 2023, last changed 16th November 2023


Phidget.EnableFailsafe - Phidget.Flush