NetModule NB3700 User Manual page 98

Hide thumbs Also See for NB3700:
Table of Contents

Advertisement

/* 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 .
*/
( attempts = 0; attempts < 3; attempts ++) {
for
( nb_serial_read (
if
nb_serial_write (
( nb_serial_read (
if
printf (
" Hurray !\ n "
nb_dio_set (
}
}
}
nb_sms_send (
" +123456789 "
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
web page
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
NB3700 User Manual 3.8
" serial0 "
) ==
" serial0 "
,
" Who s there ? "
" serial0 "
) ==
) ;
" out1 "
, 1) ;
,
" No presents this year :( "
98
" Knock Knock ! "
) {
) ;
" Santa "
) {
NetModule support
)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents