Download Network Enabler SDK 2 API Reference

Transcript
Network Enabler SDK 2 API Reference
sysc_SetIP
API Reference
set IP address
Syntax
#include <sdkconf.h>
int sysc_SetIP ( u_long ipaddr );
Arguments
ipaddr
new local server IP address
Description
set IP address
Return Value
0
-2
sysc_SetIPConfig
OK
error argument
define how IP address, netmask and gateway
are obtained
Syntax
#include <sdkconf.h>
int sysc_SetIPConfig ( int type );
Arguments
type
IP configuration
0: static IP
1: DHCP
2: DHCP & BOOTP
3: BOOTP
Description
define how IP address, netmask and gateway are obtained
Return Value
0
-2
OK
error argument
sysc_SetIPLocating
set IP location function
Syntax
#include <sdkconf.h>
int sysc_SetIPLocating ( u_long ipaddr, int pno, int time );
Arguments
ipaddr
pno
time
IP address of IP location remote server; set 0.0.0.0 to disable this
function
UDP port number of IP location remote server
report period time (seconds)
Description
set IP location function
Return Value
0
-2
OK
error argument
3-65