Changes

1,602 bytes added ,  10:18, 30 August 2018
Line 620: Line 620:  
'''Usage syntax''':
 
'''Usage syntax''':
   −
  gsmctl <span style="color:blue;">-S -r</span>, <span style="color:blue;">--sms --read</span>
+
  gsmctl <span style="color:blue;">-S -r</span>, <span style="color:blue;">--sms --read</span> <span style="color:purple;"><INDEX></span>
   −
'''Example''':  
+
'''Example''': reading the first message in the SMS list
   −
  root@Teltonika:~# gsmctl <span style="color:blue;"></span>
+
  root@Teltonika:~# gsmctl <span style="color:blue;">-S -r</span> <span style="color:purple;">1</span>
  <span style="color:red;"></span>
+
  <span style="color:red;">Index: 1
 +
Date: 2018-08-02 10:33:20
 +
Sender: +37061111111
 +
Status: read
 +
Text: Hello
 +
</span>
    
'''Possible responses''':
 
'''Possible responses''':
*  
+
* five lines of string type output indicating the following information related to the SMS message:
 +
** Index - an integer number indicating the position of the message in the SMS message list
 +
** Date - the date the message was received
 +
** Sender - sender's phone number
 +
** Status - indicates whether the message has been previously read. (Possible values: ''read'' or ''new'')
 +
** Text - the body of the message
      Line 634: Line 644:  
----
 
----
   −
To read a single SMS message, use '''''- -''''' or '''''-- --''''' options
+
To print a list of SMS messages, use '''''-S -l''''' or '''''--sms --list''''' options. Additionally you have to specify the '''''<TYPE>''''' of the list. ''<TYPE>'' can either '''''read''''', '''''new''''' or '''''all'''''
    
'''Usage syntax''':
 
'''Usage syntax''':
   −
  gsmctl <span style="color:blue;">- -</span>, <span style="color:blue;">-- --</span>
+
  gsmctl <span style="color:blue;">-S -l</span>, <span style="color:blue;">--sms --list</span> <span style="color:purple;"><TYPE></span>
   −
'''Example''':  
+
'''Example''': printing the list of all new (unread) SMS messages
   −
  root@Teltonika:~# gsmctl <span style="color:blue;"></span>
+
  root@Teltonika:~# gsmctl <span style="color:blue;">-S -l</span> <span style="color:purple;">new</span>
  <span style="color:red;"></span>
+
  <span style="color:red;">Index: 19
 +
Date: 2018-08-03 08:26:36
 +
Sender: +37061111111
 +
Text: status
 +
Status: new</span>
    
'''Possible responses''':
 
'''Possible responses''':
*  
+
* five lines of string type output indicating the following information related to the SMS message:
 
+
** Index - an integer number indicating the position of the message in the SMS message list
 +
** Date - the date the message was received
 +
** Sender - sender's phone number
 +
** Text - the body of the message
 +
** Status - indicates whether the message has been previously read. (Possible values: ''read'' or ''new'')
    
===Print SMS memory usage===
 
===Print SMS memory usage===
 
----
 
----
   −
To read a single SMS message, use '''''- -''''' or '''''-- --''''' options
+
To check the SMS memory usage, use '''''-S -t''''' or '''''--sms --total''''' options.
    
'''Usage syntax''':
 
'''Usage syntax''':
   −
  gsmctl <span style="color:blue;">- -</span>, <span style="color:blue;">-- --</span>
+
  gsmctl <span style="color:blue;">-S -t</span>, <span style="color:blue;">--sms --total</span>
   −
'''Example''':  
+
'''Example''': checking the SMS memory usage
   −
  root@Teltonika:~# gsmctl <span style="color:blue;"></span>
+
  root@Teltonika:~# gsmctl <span style="color:blue;">-S -t</span>
  <span style="color:red;"></span>
+
  <span style="color:red;">Used: 28
 +
Total: 50 </span>
    
'''Possible responses''':
 
'''Possible responses''':
*  
+
* two lines of string type output
 +
** Used - used memory space (integer)
 +
** Total - total memory space (integer)
 +
 
      Line 670: Line 692:  
----
 
----
   −
To read a single SMS message, use '''''- -''''' or '''''-- --''''' options
+
To check the SMS memory usage, use '''''-S -t''''' or '''''--sms --total''''' options.
    
'''Usage syntax''':
 
'''Usage syntax''':
Line 718: Line 740:     
'''Possible responses''':
 
'''Possible responses''':
*  
+
*
    
==Auxiliary options==
 
==Auxiliary options==