org.tonjac.sms
Interface SMSListener
public interface SMSListener
Interface that should be implemented in a SMS listener that
executes a specific command.
- Author:
- Toni Thomsson
|
Method Summary |
void |
onMessage(java.lang.String command,
java.lang.String[] args,
java.lang.String from)
Called by the SMS framework when a message with a specific command is recieved. |
onMessage
void onMessage(java.lang.String command,
java.lang.String[] args,
java.lang.String from)
throws java.lang.Exception
- Called by the SMS framework when a message with a specific command is recieved.
The command is specified in the configurationfile.
Sample configuration file:
[sms]
baudrate=19200
port=COM25
pin=0000
storage=MEM
brand=SonyEricsson
model=K750i
read_poll_interval=10
TEST.listener=org.tonjac.sms.TestListener
TEST.reply_errors=1
TEST.argc=3
- Parameters:
command - Command = text before the first whitespceargs - Arguments = text after the first whitespacefrom - The senders phonenumber
- Throws:
java.lang.Exception