.WANLINK1_TYPE = string[4]: "wwan"
.WANLINK1_PASSTHROUGH = string[4]: "LAN2"
.WANLINK1_DIAL_FAILURES = string[1]: "0"
.WANLINK1_SIM = string[4]: "SIM1"
.WANLINK1_REGISTRATION_STATE = string[23]: "registeredInHomeNetwork"
.WANLINK1_INTERFACE = string[5]: "WWAN1"
.WANLINK1_DATA_DOWNLOADED = string[6]: "382656"
.WAN_HOTLINK = string[8]: "WANLINK1"
.WANLINK1_SIGNAL_STRENGTH = string[4]: "-104"
}
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 find all possible parameters by reading the /etc/config/factory-
config.cfg file accessible via CLI.
/etc/config $ cat factory-config.cfg | grep ntp
network.ntp.status
=1
network.ntp.server0
=0.pool.ntp.org
network.ntp.server1
=1.pool.ntp.org
network.ntp.ping
=1
network.ntp.interval
=256
network.ntp.gpstime
=0
network.ntp.access.0.address
=192.168.1.0
network.ntp.access.0.netmask
=255.255.255.0
network.ntp.access.1.address
=
network.ntp.access.1.netmask
=
network.ntp.access.2.address
=
network.ntp.access.2.netmask
=
Here is an example how one might adopt those functions:
/* Check the current NTP server and set it to the IP address 192.168.0.2
and enable the NTP synchronisation */
printf ("The NTP server was previously using IP address: ");
printf (nb_config_get("network.ntp.server0"));
printf("\n\n");
nb_config_set("network.ntp.server0=192.168.0.2");
if (nb_config_get ("network.ntp.status") == "0"){
printf ("and was not running.");
printf("\n\n");
nb_config_set ("network.ntp.status=1");
}
else {
printf ("and was running.");
printf("\n\n");
}
printf ("The NTP server is now running with IP address: ");
printf (nb_config_get("network.ntp.server0"));
MG102iGPRS/UMTS/HSPA+/LTE router – © RACOM s.r.o.
102
Web Configuration
Содержание MG102i
Страница 2: ......
Страница 147: ...147 RACOM s r o MG102iGPRS UMTS HSPA LTE router Web Configuration...
Страница 148: ...7 8 LOGOUT Log out from Web Manager MG102iGPRS UMTS HSPA LTE router RACOM s r o 148 Web Configuration...
Страница 174: ...174...