libspiagentspiagent_ |
public static void spiagent_open( string server, out int error )
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.
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);