Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sdk:sdk [2018/08/07 17:43]
preisig
sdk:sdk [2019/07/08 14:56] (current)
fachet [GPS]
Line 14: Line 14:
 * otherwise we 'd have to send a short message . * otherwise we 'd have to send a short message .
 */ */
-for ( attempts = 0; attempts < 3; attempts ++) { +for ( attempts=0; attempts<​3;​ attempts ++) { 
-  if ( nb_serial_read (" serial0 ") == " Knock Knock !") { +  if ( nb_serial_read ("​serial0"​) == "Knock Knock !") { 
-    nb_serial_write (" serial0 ", "Who 's there ?"); +    nb_serial_write ("​serial0",​ "Who 's there ?"); 
-    if ( nb_serial_read (" serial0 ") == " Santa ") {+    if ( nb_serial_read ("​serial0"​) == " Santa ") {
       printf (" Hurray !\n");       printf (" Hurray !\n");
-      nb_dio_set (" out1 ", 1);+      nb_dio_set ("​out1",​ 1);
     }     }
   }   }
 } }
-nb_sms_send (" +123456789 ", "No presents this year :(")+nb_sms_send ("​+123456789",​ "No presents this year :(")
 </​code>​ </​code>​
 A set of example scripts can be downloaded directly from the router, you can find a list of them in the appendix. The [[ftp://​share.netmodule.com/​router/​public/​system-software/​latest/​NB_SDK_Arena_Manual.pdf|SDK language manual]] gives a detailed introduction of the language, including a description A set of example scripts can be downloaded directly from the router, you can find a list of them in the appendix. The [[ftp://​share.netmodule.com/​router/​public/​system-software/​latest/​NB_SDK_Arena_Manual.pdf|SDK language manual]] gives a detailed introduction of the language, including a description
Line 130: Line 130:
   * [[sdk:​alarm-via-voice| Create a Phonecall Alarm]]   * [[sdk:​alarm-via-voice| Create a Phonecall Alarm]]
   * [[sdk:​log-to-syslog| Log Status Values to Syslog]]   * [[sdk:​log-to-syslog| Log Status Values to Syslog]]
 +  * [[sdk:​wwan_switcher|Change WWAN Hotlink according to the Service Type]]
 ==== GPS ==== ==== GPS ====
   * [[sdk:​gps-udp-broadcast|Broadcast selected GPS NMEA data to different UDP ports]]   * [[sdk:​gps-udp-broadcast|Broadcast selected GPS NMEA data to different UDP ports]]
 +  * [[sdk:​gps-udp-client-GNSStoGPS|Send GNSS data to a remote UDP port in $GP instead of $GN format ]]
  
 ==== Serial ==== ==== Serial ====