2 reading an sms via pdu, 4 removing an sms/pdu, 8 check services available – Dovado TINY User Manual
Page 24: 9 api coding, Check services available, Api coding

T h e M o b i l e C h o i c e f o r y o u r B r o a d b a n d I n t e r n e t
Reference Manual 7.1.5
24
© 2014 Dovado FZ-LLC
>>
4.7.3.2
Reading an SMS via PDU
sms recv [ID] (returns PDU with ID or all PDUs in the inbox if ID is empty [ID:PDU])
You can list all the current PDUs in your in the inbox using: sms recv
This will list all PDUs using in the format ID:PDU where ID is a unique internal descriptor of that
PDU (used for removing PDUs).
Conversion is needed to see the actual contents of the PDU.
Example:
>> sms list
new/total
1/1
Stored IDs: 1
>> sms recv 1
1:07916407970900F1040B91640XXXXXXXF40000217032117263800A
>>
4.7.4
Removing an SMS/PDU
sms del ID
First you need the ID of the PDU you want to remove. It can be obtained using the sms recv
command. Then to remove a SMS/PDU, type: sms del ID
Example:
>> sms list
new/total
0/1
Stored IDs: 1
>> sms del 1
>>
4.8
Check services available
Services available in current session:
To display which services that are available in current session, execute the command:
services
It will respond with the services (Home Automation and SMS) that are currently available
Example:
SMS=enabled
4.9
API Coding
The API can easily be extended with a custom front-end. When implementing a front-end, mind the
following:
The router might be behind a high-latency connection. Set a high timeout for your connection.
When logging in to the API, the password must be encoded either ISO-8859-1or UTF-8
When executing a command (for example ts aliases), each line of output from the API is
terminated with LF (Line Feed, ASCII character 10d) and the last line of output from the
command is ETB (End of Transmission Block, ASCII character 23d).