![]() |
SparkFun Iridium 9604
v1.0.0
Library for the Iridium 9604 Hybrid LTE-M Cellular + Iridium Satellite (SBD) + GNSS IoT module
|
The base class for the URC handlers. See the file description for how to add a new URC. More...
#include <urcHandler.h>
Public Member Functions | |
| urcHandler (void) | |
| virtual | ~urcHandler (void) |
| void | addURC (const char *urcPrefix, bool keepInBacklog=true) |
| Register this handler's identity. Called once, from the subclass's own constructor. More... | |
| bool | amI (const char *urcPrefix) const |
| Does this object handle this URC prefix? (Exact match, e.g. "+UUSORD:") More... | |
| const char * | match (const char *event) const |
| Does this event contain this handler's URC? More... | |
| virtual bool | process (urcHandlerInterface &device, const char *params)=0 |
| Parse the URC parameters and act on them. More... | |
| bool | setCallback (urcCallback_t callback, uint8_t index=0) |
| Set (or clear, with nullptr) callback 'index' for this URC. More... | |
| bool | hasCallback (uint8_t index=0) const |
| true if callback 'index' has been registered. More... | |
Public Attributes | |
| const char * | _urcPrefix = nullptr |
| e.g. "+UUSORD:" More... | |
| bool | _keepInBacklog = true |
| Keep this URC in the backlog for the next bufferedPoll. More... | |
| urcCallback_t | _callbackPtr [URC_MAX_CALLBACKS] |
| The user's callbacks, stored generically. More... | |
The base class for the URC handlers. See the file description for how to add a new URC.
|
inline |
|
inlinevirtual |
|
inline |
Register this handler's identity. Called once, from the subclass's own constructor.
| urcPrefix | The URC prefix, including the colon, e.g. "+UUSORD:". Must be permanently lived. |
| keepInBacklog | If true (the default), pruneBacklog() keeps events containing this URC so they are processed by the next bufferedPoll(). |
|
inline |
Does this object handle this URC prefix? (Exact match, e.g. "+UUSORD:")
|
inline |
true if callback 'index' has been registered.
|
inline |
Does this event contain this handler's URC?
| event | The event (one line, CR LF removed). |
|
pure virtual |
Parse the URC parameters and act on them.
| device | The DevIridium9604 services available to the handler. |
| params | The URC parameters: the text after the URC prefix (and any spaces). |
Implemented in SparkFun_Iridium_9604::urcAREG, SparkFun_Iridium_9604::urcCEREG, SparkFun_Iridium_9604::urcCIEV, SparkFun_Iridium_9604::urcCREG, SparkFun_Iridium_9604::urcUUFTPCR, SparkFun_Iridium_9604::urcUUGIND, SparkFun_Iridium_9604::urcUUGNMEA, SparkFun_Iridium_9604::urcUUHTTPCR, SparkFun_Iridium_9604::urcUULOC, SparkFun_Iridium_9604::urcUUMQTTC, SparkFun_Iridium_9604::urcUUPING, SparkFun_Iridium_9604::urcUUSIMSTAT, SparkFun_Iridium_9604::urcUUSOCL, SparkFun_Iridium_9604::urcUUSOLI, SparkFun_Iridium_9604::urcUUSORD, and SparkFun_Iridium_9604::urcUUSORF.
|
inline |
Set (or clear, with nullptr) callback 'index' for this URC.
| urcCallback_t SparkFun_Iridium_9604::urcHandler::_callbackPtr[URC_MAX_CALLBACKS] |
The user's callbacks, stored generically.
| bool SparkFun_Iridium_9604::urcHandler::_keepInBacklog = true |
Keep this URC in the backlog for the next bufferedPoll.
| const char* SparkFun_Iridium_9604::urcHandler::_urcPrefix = nullptr |
e.g. "+UUSORD:"