![NetModule NB3710 Скачать руководство пользователя страница 111](http://html1.mh-extra.com/html/netmodule/nb3710/nb3710_user-manual_1674431111.webp)
NB3710 User Manual 4.0
16. Create your own web pages
17. Voice control functions
18. SNMP functions
19. CAN socket functions
20. Various network-related functions
21. Other system-related functions
The SDK API manual (which can be downloaded from the router) provides an overview
but also explains all functions in detail.
Please note that some functions require the corresponding services (e.g. E-Mail, SMS)
to be properly configured prior to utilizing them in the SDK.
Let’s now pay some attention to the very powerful API function
nb_status
. It can
be used to query the router’s status values in the same manner as they can be shown
with the CLI. It returns a structure of variables for a specific section (a list of available
sections can be obtained by running
cli status -h
).
By using the
dump
function you can figure out the content of the returned structure:
/* dump current location */
dump ( nb_status (
" location "
));
The script will then generate lines like maybe these:
struct(8): {
.LOCATION_STREET
= string[11]: "Bahnhofquai"
.LOCATION_CITY
= string[10]: "Zurich"
.LOCATION_COUNTRY_CODE = string[2]:
"ch"
.LOCATION_COUNTRY
= string[11]: "Switzerland"
.LOCATION_POSTCODE
= string[4]:
"8001"
.LOCATION_STATE
= string[6]:
"Zurich"
.LOCATION_LATITUDE
= string[9]:
"47.3778058"
.LOCATION_LONGITUDE
= string[8]:
"8.5412757"
}
In combination with the
nb_config_set
function, it is possible to start a re-configuration
of any parts of the system upon status changes. You may query possible sections and
parameters again with the CLI:
~ $ cli get -c wanlink.0
Showing configuration sections (matching ’wanlink.0’):
111
Содержание NB3710
Страница 90: ...NB3710 User Manual 4 0 Figure 5 27 Inbound NAPT...
Страница 92: ...NB3710 User Manual 4 0 Figure 5 29 OpenVPN Configuration...
Страница 96: ...NB3710 User Manual 4 0 Figure 5 30 OpenVPN Client Management...
Страница 98: ...NB3710 User Manual 4 0 Figure 5 31 IPsec Administration...
Страница 104: ...NB3710 User Manual 4 0 Figure 5 34 PPTP Tunnel Configuration...
Страница 108: ...NB3710 User Manual 4 0 as GSM voice calls they suffer from unreliability and poor bandwidth...
Страница 114: ...NB3710 User Manual 4 0 Figure 5 37 SDK Administration...
Страница 117: ...NB3710 User Manual 4 0 Figure 5 38 SDK Jobs...
Страница 121: ...NB3710 User Manual 4 0 Figure 5 39 DHCP Server...
Страница 128: ...NB3710 User Manual 4 0 Parameter E Mail Client Settings Password Password used for authentication...
Страница 131: ...NB3710 User Manual 4 0 Figure 5 44 SMS Configuration...
Страница 156: ...NB3710 User Manual 4 0 Figure 5 55 Remote Authentication...
Страница 160: ...NB3710 User Manual 4 0 Figure 5 57 Automatic File Configuration...
Страница 164: ...NB3710 User Manual 4 0 Figure 5 59 Log Viewer...
Страница 165: ...NB3710 User Manual 4 0 Figure 5 60 Tech Support File...
Страница 173: ...NB3710 User Manual 4 0 5 9 LOGOUT Please use this menu to log out from the Web Manager...
Страница 211: ...NB3710 User Manual 4 0 Event Description Table A 3 SDK Examples...