Platforms to show: All Mac Windows Linux Cross-Platform
PhidgetNetMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Phidget NET class controls all network functionality of a Phidget program, and allows for the use of remote Phidgets in your program. It can be used to enable automated Phidget server discovery over the local network, and to connect to or reject specific servers.
For basic use of the Net class, the only functions you need to worry about are EnableServerDiscovery and AddServer. In most cases, you can use EnableServerDiscovery with server type kServerTypeDeviceRemote to automatically connect to Phidget servers on your local network. You can use AddServer to connect to servers that aren't discoverable on your local network.
To connect to a password-protected discoverable server on your local network, you can use SetServerPassword to specify the password to connect to that server.
If for some reason you need to prevent your program from discovering a non-password-protected server on your local network, you can call DisableServer directly after calling EnableServerDiscovery.
You must enable server discovery or add at least one server before setting other properties of this class, such as disabling servers, or setting server passwords. Similarly, server discovery must remain enabled, or at least one server must remain added, to maintain memory of those preferences.
- 2 events
- event ServerAdded(server as PhidgetServerMBS)
- event ServerRemoved(server as PhidgetServerMBS)
- 2 methods
- method Constructor
- method Destructor
- 8 shared methods
- shared method addServer(serverName as String, address as String, port as Integer, password as String, Flags as Integer)
- shared method disableServer(serverName as String, flags as Integer)
- shared method disableServerDiscovery(serverType as Integer)
- shared method enableServer(serverName as String)
- shared method enableServerDiscovery(serverType as Integer)
- shared method removeAllServers
- shared method removeServer(serverName as String)
- shared method setServerPassword(serverName as String, password as String)
This class has no sub classes.
The items on this page are in the following plugins: MBS Phidgets Plugin.
PhidgetMotorPositionControllerMBS - PhidgetNotInitialzedExceptionMBS