This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sdk:sdk [2017/06/14 12:33] – [Helpful Functions] juraschek | sdk:sdk [2018/09/18 09:37] – [The Language] juraschek | ||
---|---|---|---|
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< |
- | if ( nb_serial_read (" serial0 ") == " Knock Knock !") { | + | if ( nb_serial_read (" |
- | nb_serial_write (" serial0 ", "Who 's there ?"); | + | nb_serial_write (" |
- | if ( nb_serial_read (" serial0 ") == " Santa ") { | + | if ( nb_serial_read (" |
printf (" Hurray !\n"); | printf (" Hurray !\n"); | ||
- | nb_dio_set (" out1 ", 1); | + | nb_dio_set (" |
} | } | ||
} | } | ||
} | } | ||
- | nb_sms_send (" +123456789 ", "No presents this year :(") | + | nb_sms_send (" |
</ | </ | ||
A set of example scripts can be downloaded directly from the router, you can find a list of them in the appendix. The [[ftp:// | A set of example scripts can be downloaded directly from the router, you can find a list of them in the appendix. The [[ftp:// | ||
Line 104: | Line 104: | ||
The SDK host (sdkhost) corresponds to the daemon managing the scripts and their operations and thus avoiding any harm to the system. In terms of resources, it will limit CPU and memory for running scripts and also provide a pre-defined portion of the available flash storage. You may, however, extend it by external USB storage or (depending on your model) SD cards. Files written to /tmp will be hold in memory and will be cleared upon a restart of the script. As your scripts operate in the sandbox, you will have no access to tools on the system (such as '' | The SDK host (sdkhost) corresponds to the daemon managing the scripts and their operations and thus avoiding any harm to the system. In terms of resources, it will limit CPU and memory for running scripts and also provide a pre-defined portion of the available flash storage. You may, however, extend it by external USB storage or (depending on your model) SD cards. Files written to /tmp will be hold in memory and will be cleared upon a restart of the script. As your scripts operate in the sandbox, you will have no access to tools on the system (such as '' | ||
- | ===== Testing ===== | + | ===== Simple How-To & Testing ===== |
* [[sdk: | * [[sdk: | ||
Line 113: | Line 113: | ||
* [[sdk: | * [[sdk: | ||
* [[sdk: | * [[sdk: | ||
+ | * [[sdk: | ||
==== Configurations ==== | ==== Configurations ==== | ||
* [[sdk: | * [[sdk: | ||
* [[sdk: | * [[sdk: | ||
+ | * [[sdk: | ||
==== Status Parameters ==== | ==== Status Parameters ==== | ||
* [[sdk:: | * [[sdk:: | ||
Line 128: | Line 130: | ||
* [[sdk: | * [[sdk: | ||
* [[sdk: | * [[sdk: | ||
- | + | * [[sdk: | |
+ | ==== GPS ==== | ||
+ | * [[sdk: | ||
==== Serial ==== | ==== Serial ==== | ||
* [[sdk: | * [[sdk: | ||
* [[sdk:: | * [[sdk:: | ||
+ | * [[sdk:: | ||
+ | * [[sdk:: | ||
==== HTTP ==== | ==== HTTP ==== | ||
* [[sdk:: | * [[sdk:: | ||
Line 139: | Line 146: | ||
* [[sdk:: | * [[sdk:: | ||
* [[sdk:: | * [[sdk:: | ||
+ | * [[sdk:: | ||
+ | ==== MQTT ==== | ||
+ | * [[sdk:: | ||
+ | * [[sdk:: | ||
+ | ==== Wifi / WLAN ==== | ||
+ | * [[sdk:: | ||
==== Various ==== | ==== Various ==== | ||
* [[sdk: | * [[sdk: | ||
* [[sdk:: | * [[sdk:: | ||
* [[sdk:: | * [[sdk:: | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | | + | |
Line 224: | Line 228: | ||
|[[sdk: | |[[sdk: | ||
|[[sdk: | |[[sdk: | ||
+ | |||
+ | |||
+ | ===== Access the Filesystem ===== | ||
+ | |||
+ | You can acces the SDK Filesystem externaly via SCP: | ||
+ | |||
+ | With Windows you can use the opensource software [[https:// | ||
+ | |||
+ | Connect with the Protocoal SPC, User " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Please then go to the folder | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Where you find the Filesystem which is usable from the SDK | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||