|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.util.ATCommander
public class ATCommander
This class serves as helper class for calling AT commands Please note that class uses only one instance of ATCommand class for all exec calls
| Constructor Summary | |
|---|---|
ATCommander()
|
|
| Method Summary | |
|---|---|
static void |
addListener(ATCommanderListener listener)
Adds listener for AT commands events |
static void |
close()
|
static java.lang.String |
exec(java.lang.String command)
This method is intended for AT commands execution and from AT command returns whole answer in STRING.. |
static java.util.Vector |
execute(java.lang.String command)
Method executes AT command and pass lines of answers in Vectors form. |
static java.lang.String |
execute(java.lang.String command,
int responseIndex)
Executes AT command and returns required line from answer |
static boolean |
removeListener(ATCommanderListener listener)
Remove listener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ATCommander()
| Method Detail |
|---|
public static void addListener(ATCommanderListener listener)
listener - listenerpublic static boolean removeListener(ATCommanderListener listener)
listener - listener
public static java.lang.String exec(java.lang.String command)
command - - AT command without CRLF
public static java.util.Vector execute(java.lang.String command)
command - - AT command without CRLF
public static java.lang.String execute(java.lang.String command,
int responseIndex)
command - - AT command without CRLFresponseIndex - - required line
public static void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||