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: DHT DS_1337 SDFileSystem USBDevice mbed
GprsHandler Class Reference
The GprsHandler class saves recipients and looks after incoming and outgoing messages. More...
#include <GprsHandler.h>
Inherits AbstractHandler.
Public Types | |
| enum | request_t { gprsreq_GprsNone, gprsreq_SmsSend, gprsreq_SetRecipients } |
Public Member Functions | |
| void | run () |
| run is inherited by each Handler class. It is called from the main while loop in main.cpp. It runs through the state machine, specific to each Handler class. | |
| void | setRequest (int request, void *data=0) |
| setRequest sets a request that the handler will complete when it is able to | |
Protected Attributes | |
| MyTimers * | m_timer |
| Handler classes use timers to pause in the state machine, and continue after delay has finished. | |
Detailed Description
The GprsHandler class saves recipients and looks after incoming and outgoing messages.
Options: save recipients internally to this class. Or - request sends a struct that includes recipients list and message string
Definition at line 34 of file GprsHandler.h.
Member Enumeration Documentation
| enum request_t |
- Enumerator:
Definition at line 44 of file GprsHandler.h.
Member Function Documentation
| void run | ( | ) | [virtual] |
run is inherited by each Handler class. It is called from the main while loop in main.cpp. It runs through the state machine, specific to each Handler class.
Implements AbstractHandler.
Definition at line 50 of file GprsHandler.cpp.
| void setRequest | ( | int | request, |
| void * | data = 0 |
||
| ) | [virtual] |
setRequest sets a request that the handler will complete when it is able to
- Parameters:
-
request unique to the reimplemented class (an enum) that will be completed in the state machine message an optional array of information relevant to the request
Implements AbstractHandler.
Definition at line 245 of file GprsHandler.cpp.
Field Documentation
Handler classes use timers to pause in the state machine, and continue after delay has finished.
Definition at line 31 of file AbstractHandler.h.
Generated on Tue Jul 12 2022 23:07:44 by
1.7.2