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: Socket USBHostWANDongle lwip-sys lwip
Fork of VodafoneUSBModem by
Diff: at/ATCommandsInterface.cpp
- Revision:
- 79:a6ac8206a58d
- Parent:
- 75:ff3e5d1e82ca
- Child:
- 83:897a0de9d668
--- a/at/ATCommandsInterface.cpp Wed Dec 19 09:32:58 2012 +0000 +++ b/at/ATCommandsInterface.cpp Wed Jan 09 16:13:50 2013 +0000 @@ -17,7 +17,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#define __DEBUG__ 4 //ERR+WARN +#define __DEBUG__ 0 //ERR+WARN #ifndef __MODULE__ #define __MODULE__ "ATCommandsInterface.cpp" #endif @@ -863,6 +863,17 @@ return OK; } +void ATCommandsInterface::pause() { + DBG("pausing at commands interface"); + m_pStream->abortRead(); + m_processingThread.signal_set(AT_SIG_PROCESSING_STOP); +} + +void ATCommandsInterface::restart() { + DBG("restarting AT commands interface"); + m_processingThread.signal_set(AT_SIG_PROCESSING_START); +} + void ATCommandsInterface::process() //Processing thread { DBG("AT Thread started");