Open a Phidget remotely using an IP Address, without a serial number.
Namespace:
PhidgetsAssembly: Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34
Syntax
C# |
---|
public void open( string IPAddress, int port ) |
Visual Basic (Declaration) |
---|
Public Sub open ( _ IPAddress As String, _ port As Integer _ ) |
Visual C++ |
---|
public: void open( String^ IPAddress, int port ) |
Parameters
- IPAddress
- Type: System..::.String
The server IP address.
- port
- Type: System..::.Int32
The server port.
Remarks
This version of open is network based.
This method is the same as open(int serialNumber, string IPAddress, int port), except that it specifies no serial number. Therefore, the first available Phidget will be opened. If there are two Phidgets of the same type attached to the system, you should specify a serial number, as there is no guarantee which Phidget will be selected by the call to open().