Click or drag to resize

libspiagentspiagent_open Method

Open a connection to an LPC1114 I/O Processor.

Namespace: IO.Bindings
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntax
C#
public static void spiagent_open(
	string server,
	out int error
)

Parameters

server  String

Indicates the communication protocol and host name (Domain name or IP address) of the network server with an attached LPC1114 I/O Processor, of the form [protocol]://[host].

The following network communication protocols are supported:

http ( Hypertext Transfer Protocol),
oncrpc ( Open Network Computing Remote Procedure Call), and
xmlrpc ( XML Remote Procedure Call).

The additional special string ioctl://localhost indicates the LPC1114 I/O Processor is attached directly to the computer the calling program is running on, either to an SPI ( Serial Peripheral Interface) peripheral bus, or to an I2C (Inter-Integrated Circuit) peripheral bus.

error  Int32
Set to 0 upon success, or an errno error number upon failure.
Remarks
The underlying library libspiagent.so only supports a single connection to a single LPC1114 I/O Processor at a time.
Example

LPC1114 I/O Processor attached to a network server:

spiagent_open("http://yourhost.yourmain", out error);

spiagent_open("oncrpc://yourhost.yourdomain", out error);

spiagent_open("xmlrpc://yourhost.yourdomain", out error);

LPC1114 I/O processor attached to the computer the calling program is running on:

spiagent_open("ioctl://localhost", out error);

See Also