User Manual
Driver information10
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved.usbpt104pg.en
2.9
UsbPt104OpenUnitViaIp
PICO_STATUS UsbPt104OpenUnitViaIp (
short * handle,
char * serial,
char * ipAddress
)
This routine obtains a handle for the Ethernet-connected PT-104 device, identified by
either its IP address or its serial number.
Using IP address identification, a device anywhere on the internet or local network
can be opened.
Using serial number identification, only a device on the local network can be
opened.
If you wish to use more than one PT-104, you must call the routine once for each
device.
Arguments:
handle, output: handle of the device that was opened. This value is
used to identify the device in all further function calls.
serial, input: serial number of device as a null-terminated string,
or a null pointer if ipAddress is used.
ipAddress, input: the IP address of the device as a null-terminated
string, or a null pointer if serial is used.
Returns:
defined in picoStatus.h