NB3700 User Manual 3.8
/* We are going to eavesdrop on the first serial port
* and turn on lights via a digital I/O output port ,
* otherwise we 'd have to send a short message .
*/
for
( attempts = 0; attempts < 3; at+) {
if
( nb_serial_read (
" serial0 "
) ==
" Knock Knock !"
) {
nb_serial_write (
" serial0 "
,
" Who 's there ?"
);
if
( nb_serial_read (
" serial0 "
) ==
" Santa "
) {
printf (
" Hurray !\n"
);
nb_dio_set (
" out1 "
, 1);
}
}
}
nb_sms_send (
" +123456789 "
,
"No presents this year :("
)
A set of example scripts can be downloaded directly from the router, you can find a list of
them in the appendix. The manual which can be obtained from the
gives a detailed introduction of the language, including a description of all
available functions.
SDK API Functions
The current range of API functions can be used to implement the following features:
1. Send/Retrieve SMS
2. Send E-mail
3. Read/Write from/to serial device
4. Control digital input/output ports
5. Run TCP/UDP servers
6. Run IP/TCP/UDP clients
7. Access files of mounted media (e.g. an USB stick)
8. Retrieve status information from the system
9. Get or set configuration parameters
10. Write to syslog
11. Transfer files over HTTP/FTP
12. Perform config/software updates
13. Control the LEDs
14. Get system events, restart services or reboot system
15. Scan for networks in range
98
Содержание NB3700
Страница 77: ...NB3700 User Manual 3 8 Figure 5 27 Inbound NAPT 77...
Страница 80: ...NB3700 User Manual 3 8 Figure 5 29 OpenVPN Configuration 80...
Страница 86: ...NB3700 User Manual 3 8 Figure 5 31 IPsec Administration 86...
Страница 92: ...NB3700 User Manual 3 8 Figure 5 34 PPTP Tunnel Configuration 92...
Страница 102: ...NB3700 User Manual 3 8 Figure 5 37 SDK Administration 102...
Страница 104: ...NB3700 User Manual 3 8 Figure 5 38 SDK Jobs 104...
Страница 109: ...NB3700 User Manual 3 8 Figure 5 39 DHCP Server 109...
Страница 111: ...NB3700 User Manual 3 8 names Please remember to point local hosts to the router s address for resolving them 111...
Страница 118: ...NB3700 User Manual 3 8 Figure 5 44 SMS Configuration 118...
Страница 140: ...NB3700 User Manual 3 8 Figure 5 53 Regional settings 140...
Страница 143: ...NB3700 User Manual 3 8 Figure 5 55 Remote Authentication 143...
Страница 147: ...NB3700 User Manual 3 8 Figure 5 57 Automatic File Configuration 147...
Страница 159: ...NB3700 User Manual 3 8 5 9 LOGOUT Please use this menu to log out from the Web Manager 159...