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 [2018/08/14 09:20] preisig [Supervision] |
sdk:sdk [2021/03/19 13:58] dodenhoeft [Built-in Scripts] |
||
---|---|---|---|
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 133: | Line 133: | ||
==== 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 ==== | ||
Line 150: | Line 151: | ||
* [[sdk::mqtt_simple_status|Send Router Status Informations to an MQTT Broker]] | * [[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]] | * [[sdk::mqtt_advanced_status|Send Router Status Informations to an MQTT Broker - Advanced Version]] | ||
+ | * [[sdk::mqtt_dio| Publish changes of the Digitial In or Out Interfaces via MQTT]] | ||
==== Wifi / WLAN ==== | ==== Wifi / WLAN ==== | ||
* [[sdk::wifimodechanger|Change Wifi Mode based on SSID]] | * [[sdk::wifimodechanger|Change Wifi Mode based on SSID]] | ||
+ | * [[sdk::wifiprobingclients|Show probing WiFi clients]] | ||
==== 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]] | ||
Line 182: | Line 185: | ||
|[[sdk:scripts:gps-udp-client-compat|gps-udp-client-compat.txt]]| This script sends the local GPS NMEA stream (incl. serial/checksum) to a remote UDP server.| | |[[sdk:scripts:gps-udp-client-compat|gps-udp-client-compat.txt]]| This script sends the local GPS NMEA stream (incl. serial/checksum) to a remote UDP server.| | ||
|[[sdk:scripts:gps-udp-client|gps-udp-client.txt]]| This script sends the local GPS NMEA stream to a remote UDP server.| | |[[sdk:scripts:gps-udp-client|gps-udp-client.txt]]| This script sends the local GPS NMEA stream to a remote UDP server.| | ||
+ | |[[sdk:scripts:gps2serial-gnsstogps|gps2serial-gnsstogps.txt]]| This script sends the local GPS NMEA stream to the internal serial interface. t checks for the correct CR/LF end of line characters and convert messages $GN to $GP.| | ||
|[[sdk:scripts:gps-upd-client-compat|gps-upd-client-compat.txt]]| This script sends the local GPS NMEA stream to a remote UDP server (incl. device identity).| | |[[sdk:scripts:gps-upd-client-compat|gps-upd-client-compat.txt]]| This script sends the local GPS NMEA stream to a remote UDP server (incl. device identity).| | ||
|[[sdk:scripts:led|led.txt]]| This script can be used to set a LED| | |[[sdk:scripts:led|led.txt]]| This script can be used to set a LED| |