Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ATCommandData atData = new ATCommandData("AT", 0);
- ATCommandData atData1 = new ATCommandData("ATI", 0);
- ATCommandData atData2 = new ATCommandData("AT^SCFG?", 0);
- ATCommandData[] joinedATCommands = {atData,atData1};
- ATCommandData[] singleATCommand = {atData2};
- ATCommandIssuer atci = new ATCommandIssuer(joinedATCommands);
- atci.exectute(new CallbackATCommand()
- {
- public void onSuccess(String response)
- {
- debugLogger.printSystemOut("JOINED AT SUCCESS: " + response);
- }
- public void onFailure(String response)
- {
- debugLogger.printSystemOut("JOINED AT FAILURE: " + response);
- }
- public void onError(String response)
- {
- debugLogger.printSystemOut("JOINED AT ERROR: " + response);
- }
- });
- Thread.sleep(500);
- ATCommandIssuer atci2 = new ATCommandIssuer(singleATCommand);
- atci2.exectute(new CallbackATCommand()
- {
- public void onSuccess(String response)
- {
- debugLogger.printSystemOut("SINGLE AT SUCCESS: " + response);
- }
- public void onFailure(String response)
- {
- debugLogger.printSystemOut("SINGLE AT FAILURE: " + response);
- }
- public void onError(String response)
- {
- debugLogger.printSystemOut("SINGLE AT ERROR: " + response);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement