Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos VodafoneUSBModem mbed
Diff: ATConsole.h
- Revision:
- 4:6971bded3ebd
- Parent:
- 3:6b3ca3af97cf
- Child:
- 10:b2c5a4b21bd8
diff -r 6b3ca3af97cf -r 6971bded3ebd ATConsole.h
--- a/ATConsole.h Tue Aug 28 12:47:45 2012 +0000
+++ b/ATConsole.h Tue Sep 18 09:24:41 2012 +0000
@@ -2,9 +2,24 @@
#include "Console.h"
#include "VodafoneUSBModem.h"
-class ATConsole : public Console, public IATCommandsProcessor, public IATEventsHandler {
+class ATConsole : public Console, public IATCommandsProcessor, protected IATEventsHandler {
public:
- ATConsole(Serial *terminal, int lineLength, int numLines, ATCommandsInterface* atInterface);
+
+ /** Constructor
+ @param terminal Console interface to the driving computer.
+ @param lineLength The maximum length of line supported (character console only).
+ @param numLines Number of lines of history to keep (character console only).
+ @param characterBased true if the driving console is character based, false if line based.
+ @param atInterface A Pointer to the ATInterface of the modem.
+ @return An ATConsole
+ */
+ ATConsole(
+ Serial *terminal,
+ int lineLength,
+ int numLines,
+ bool characterBased,
+ ATCommandsInterface* atInterface
+ );
~ATConsole();
virtual void update();
@@ -14,10 +29,13 @@
virtual void processCommand();
virtual int onNewATResponseLine(ATCommandsInterface* pInst, const char* line);
virtual int onNewEntryPrompt(ATCommandsInterface* pInst);
+ bool _gettingSMSData;
+ char _smsMessage[256];
+
+ protected:
virtual void onEvent(const char* atCode, const char* evt);
virtual void onDispatchStart();
virtual void onDispatchStop();
virtual bool isATCodeHandled(const char* atCode);
- bool _gettingSMSData;
- char _smsMessage[256];
+
};
\ No newline at end of file

