This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
sdk:sdk [2017/10/11 16:37] fachet [GPS] |
sdk:sdk [2018/09/18 09:42] juraschek [The Language] |
||
---|---|---|---|
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 118: | Line 118: | ||
* [[sdk:set-default-route-based-on-current-ssid|Set fake default route dynamically based on SSID]] | * [[sdk:set-default-route-based-on-current-ssid|Set fake default route dynamically based on SSID]] | ||
* [[sdk:softwareupdate-on-change| Start softwareupdate if newer version is available]] | * [[sdk:softwareupdate-on-change| Start softwareupdate if newer version is available]] | ||
+ | * [[sdk:remote-configdownload | Request a unique remote config-file from a fileserver and delete it afterwards]] | ||
==== Status Parameters ==== | ==== Status Parameters ==== | ||
* [[sdk::connection-statistics|Connection Statistics]] | * [[sdk::connection-statistics|Connection Statistics]] | ||
Line 129: | 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]] | ||
Line 136: | Line 138: | ||
* [[sdk::gps2serial|Write the GPS NMEA Frames to the Serial Interface]] | * [[sdk::gps2serial|Write the GPS NMEA Frames to the Serial Interface]] | ||
* [[sdk::serialDatalogger|Read data from the serial port and write it to files in the flash]] | * [[sdk::serialDatalogger|Read data from the serial port and write it to files in the flash]] | ||
+ | * [[sdk::hex2serial|Write non ASCII String to the Serial Port]] | ||
==== HTTP ==== | ==== HTTP ==== | ||
* [[sdk::ftp2sms|Forward File Content of Files on FTP Server via SMS]] | * [[sdk::ftp2sms|Forward File Content of Files on FTP Server via SMS]] | ||
Line 143: | Line 146: | ||
* [[sdk::dio2modbusTCP|Access to the digital I/Os via Modbus TCP]] | * [[sdk::dio2modbusTCP|Access to the digital I/Os via Modbus TCP]] | ||
* [[sdk::ReadInputRegister-ModbusTCP-TempAlam|Read out a Modbus TCP Temperatur Sensor and send an alarm Email]] | * [[sdk::ReadInputRegister-ModbusTCP-TempAlam|Read out a Modbus TCP Temperatur Sensor and send an alarm Email]] | ||
+ | * [[sdk::ReadModbus-Janitza-UMG511|Read out a Janitza UMG511 via Modbus TCP]] | ||
+ | ==== MQTT ==== | ||
+ | * [[sdk::mqtt_simple_status|Send Router Status Informations to an MQTT Broker]] | ||
+ | * [[sdk::mqtt_advanced_status|Send Router Status Informations to an MQTT Broker - Advanced Version]] | ||
+ | ==== Wifi / WLAN ==== | ||
+ | * [[sdk::wifimodechanger|Change Wifi Mode based on SSID]] | ||
==== Various ==== | ==== Various ==== | ||
* [[sdk:telnet-run-a-command-using-telnet|Run a command using Telnet]] | * [[sdk:telnet-run-a-command-using-telnet|Run a command using Telnet]] |