
SE59XX-SDK
Software development Kit
User Manual
V1.2
API
: AtopSDKSetNetDefGateway
Arguments
: eth: index of the Eth interface (ethX) - (int)
Function
: writes default gateway settings to EEPROM
Returns
: nothing (void)
Example code
:
110 {
111 char defGW[16];
112
113 sprintf(defGW, "%d", eth);
114 AtopEESetDefaultGW(NULL, defGW);
115 }
7.3.10
void AtopSDKSetNetGateway (int eth, char *gw)
API
: AtopSDKSetNetGateway
Arguments
:
eth: index of the Eth interface (ethX) - (int)
gw: gateway address (char)
Function
: writes gateway address settings to EEPROM
Returns
: nothing (void)
Example code
:
88 {
89 struct in_addr inp;
90 char info[16];
91
92 sprintf(info, "%dN", eth);
93
94 if (inet_aton(gw, &inp) > 0)
95 AtopEESetLanGateway(info, inet_ntoa(inp));
96 }
7.3.11
void AtopSDKSetNetIP (int
eth
, char *
ip
)
API
: AtopSDKSetNetIP
Arguments
:
eth: index of the Eth interface (ethX) - (int)
ip: new IP address of port ethX (char)
Function
: writes new IP address settings of specified port to EEPROM
Returns
: nothing (void)
Example code
:
34 {
35 struct in_addr inp;
36 char info[16];
37
38 sprintf(info, "%dN", eth);
39
40 if (!strncmp("DHCP", ip, strlen("DHCP")))
41 {
42 AtopEESetLanIPMode(info, "DHCP");
43 }
44 else
45 {
46 if (inet_aton(ip, &inp) > 0)
47 {
48 AtopEESetLanIPMode(info, "Static");
49 AtopEESetLanIP(info, inet_ntoa(inp));
Summary of Contents for SE59XX-SDK
Page 11: ...SE59XX SDK Software development Kit User Manual V1 2...
Page 13: ...SE59XX SDK Software development Kit User Manual V1 2 libatop so 1 0 0 ATOP library binary...
Page 17: ...SE59XX SDK Software development Kit User Manual V1 2 Figure 2 5 SE5904DB o ot loadermenu...
Page 33: ...SE59XX SDK Software development Kit User Manual V1 2...
Page 35: ...SE59XX SDK Software development Kit User Manual V1 2 SE5901B SE5908 16...
Page 36: ...SE59XX SDK Software development Kit User Manual V1 2 SE5908A 16A...
Page 37: ...SE59XX SDK Software development Kit User Manual V1 2...
Page 52: ...SE59XX SDK Software development Kit User Manual V1 2...