Methods Summary |
---|
public android.bluetooth.AtCommandResult | handleActionCommand()Handle Actions command "AT+FOO".
Action commands are part of the Extended command syntax, and are
typically used to signal an action on "FOO".
return new AtCommandResult(AtCommandResult.ERROR);
|
public android.bluetooth.AtCommandResult | handleBasicCommand(java.lang.String arg)Handle Basic commands "ATA".
These are single letter commands such as ATA and ATD. Anything following
the single letter command ('A' and 'D' respectively) will be passed as
'arg'.
For example, "ATDT1234" would result in the call
handleBasicCommand("T1234").
return new AtCommandResult(AtCommandResult.ERROR);
|
public android.bluetooth.AtCommandResult | handleReadCommand()Handle Read command "AT+FOO?".
Read commands are part of the Extended command syntax, and are
typically used to read the value of "FOO".
return new AtCommandResult(AtCommandResult.ERROR);
|
public android.bluetooth.AtCommandResult | handleSetCommand(java.lang.Object[] args)Handle Set command "AT+FOO=...".
Set commands are part of the Extended command syntax, and are
typically used to set the value of "FOO". Multiple arguments can be
sent.
AT+FOO=[[,[,...]]]
Each argument will be either numeric (Integer) or String.
handleSetCommand is passed a generic Object[] array in which each
element will be an Integer (if it can be parsed with parseInt()) or
String.
Missing arguments ",," are set to empty Strings.
return new AtCommandResult(AtCommandResult.ERROR);
|
public android.bluetooth.AtCommandResult | handleTestCommand()Handle Test command "AT+FOO=?".
Test commands are part of the Extended command syntax, and are typically
used to request an indication of the range of legal values that "FOO"
can take.
By defualt we return an OK result, to indicate that this command is at
least recognized.
return new AtCommandResult(AtCommandResult.OK);
|