Line 641: |
Line 641: |
| ** Text - the body of the message | | ** Text - the body of the message |
| * no message - indicates that an SMS message with the specified ''<INDEX>'' does not exist | | * no message - indicates that an SMS message with the specified ''<INDEX>'' does not exist |
| + | * out of range - indicates that the specified ''<INDEX>'' is out of range of the SMS message list |
| + | |
| | | |
| ===List SMS by type=== | | ===List SMS by type=== |
Line 693: |
Line 695: |
| ---- | | ---- |
| | | |
− | To delete an SMS message, use '''''-S -d''''' or '''''--sms --delete''''' options. | + | To delete an SMS message, use '''''-S -d''''' or '''''--sms --delete''''' options. Additionally you have to specify the '''''<INDEX>''''' of the message that you wish to delete. The ''<INDEX>'' is an integer number that defines the position of a message in the SMS message list. It can range from 1 to however many messages your SMS memory can store. |
| | | |
| '''Usage syntax''': | | '''Usage syntax''': |
| | | |
− | gsmctl <span style="color:blue;">- -</span>, <span style="color:blue;">-- --</span> | + | gsmctl <span style="color:blue;">-S -d</span>, <span style="color:blue;">--sms --delete</span> <span style="color:purple;"><INDEX></span> |
| | | |
− | '''Example''': | + | '''Example''': deleting the first SMS message |
| | | |
− | root@Teltonika:~# gsmctl <span style="color:blue;"></span> | + | root@Teltonika:~# gsmctl <span style="color:blue;">-S -d</span> <span style="color:purple;">1</span> |
− | <span style="color:red;"></span> | + | <span style="color:red;">OK</span> |
| | | |
| '''Possible responses''': | | '''Possible responses''': |
− | * | + | * OK |
| + | * out of range |
| | | |
| | | |
Line 711: |
Line 714: |
| ---- | | ---- |
| | | |
− | To read a single SMS message, use '''''- -''''' or '''''-- --''''' options | + | To send an SMS message, use '''''-S -s''''' or '''''--sms --send''''' options. |
| | | |
| '''Usage syntax''': | | '''Usage syntax''': |