![]() |
SparkFun Iridium 9604
v1.0.0
Library for the Iridium 9604 Hybrid LTE-M Cellular + Iridium Satellite (SBD) + GNSS IoT module
|
The collection of registered URC handlers. Replaces the SARA-R5 processURCEvent(). More...
#include <urcHandlerVector.h>
Public Member Functions | |
| urcHandlerVector (void) | |
| Construct the vector and populate it with one instance of every registered URC handler. More... | |
| ~urcHandlerVector (void) | |
| Destroy the vector, deleting every handler object it owns. More... | |
| urcHandler * | find (const char *urcPrefix) |
| Find the registered handler for a URC prefix. More... | |
| bool | setCallback (const char *urcPrefix, urcCallback_t callback, uint8_t index=0) |
| Register (or clear) a user callback for a URC. More... | |
| bool | isURC (const char *event) |
| Does this event contain a URC we want to keep in the backlog? Used by pruneBacklog(). More... | |
| bool | processEvent (urcHandlerInterface &device, const char *event) |
| Pass an event to the handlers. The first handler which matches and decodes it, wins. More... | |
| void | debugPrint (const char *message, bool important=false) |
| Print a debug message (no trailing newline), if debugging is enabled. More... | |
| void | debugPrint (int value, bool important=false) |
| Print a signed debug value in decimal, if debugging is enabled. More... | |
| void | debugPrint (int value, int printBase, bool important=false) |
| Print a signed debug value in a given base (e.g. HEX, DEC), if debugging is enabled. More... | |
| void | debugPrint (unsigned int value, bool important=false) |
| Print an unsigned debug value in decimal, if debugging is enabled. More... | |
| void | debugPrint (unsigned int value, int printBase, bool important=false) |
| Print an unsigned debug value in a given base (e.g. HEX, DEC), if debugging is enabled. More... | |
| void | debugPrint (long value, bool important=false) |
| Print a signed (long) debug value in decimal, if debugging is enabled. More... | |
| void | debugPrint (long value, int printBase, bool important=false) |
| Print a signed (long) debug value in a given base, if debugging is enabled. More... | |
| void | debugPrint (unsigned long value, bool important=false) |
| Print an unsigned (long) debug value in decimal, if debugging is enabled. More... | |
| void | debugPrint (unsigned long value, int printBase, bool important=false) |
| Print an unsigned (long) debug value in a given base, if debugging is enabled. More... | |
| void | debugPrintDouble (double value, int decimalPlaces, bool important=false) |
| Print a floating point debug value with the given number of decimal places, if debugging is enabled. More... | |
| void | debugPrintln (const char *message, bool important=false) |
| Print a debug message followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (int value, bool important=false) |
| Print a signed debug value in decimal followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (int value, int printBase, bool important=false) |
| Print a signed debug value in a given base followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (unsigned int value, bool important=false) |
| Print an unsigned debug value in decimal followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (unsigned int value, int printBase, bool important=false) |
| Print an unsigned debug value in a given base followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (long value, bool important=false) |
| Print a signed (long) debug value in decimal followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (long value, int printBase, bool important=false) |
| Print a signed (long) debug value in a given base followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (unsigned long value, bool important=false) |
| Print an unsigned (long) debug value in decimal followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (unsigned long value, int printBase, bool important=false) |
| Print an unsigned (long) debug value in a given base followed by a newline, if debugging is enabled. More... | |
| void | debugPrintln (void) |
| Print a blank debug line, if debugging is enabled and not in limited-debug mode. More... | |
| void | debugWrite (char c, bool important=false) |
| Write a single raw character to the debug port, if debugging is enabled. More... | |
| void | atDebugPrint (const char *message) |
| Echo raw AT traffic to the AT debug port, if AT debugging is enabled (enableAtDebugging). More... | |
| void | atDebugWrite (const char *buffer, size_t length) |
| Echo raw AT traffic (binary-safe) to the AT debug port, if AT debugging is enabled. More... | |
| void | atDebugWrite (char c) |
| Echo one raw AT character to the AT debug port, if AT debugging is enabled. More... | |
| bool | debugEnabled (void) const |
| true if debug messages are enabled. More... | |
| bool | atDebugEnabled (void) const |
| true if AT-traffic debug messages are enabled. More... | |
| void | copyDebugStateFrom (const SfeDebugPrint &other) |
| Copy debug state (output streams and enabled flags) from another SfeDebugPrint. More... | |
Public Attributes | |
| std::vector< urcHandler * > | urcHandlerVectors |
| The URC handler objects. More... | |
Protected Attributes | |
| SfePrint | _debugSerial |
| The stream to send debug messages to if enabled. More... | |
| bool | _printDebug = false |
| Flag to print the debug messages. More... | |
| bool | _printLimitedDebug = false |
| Flag to print limited (important only) debug messages. More... | |
| SfePrint | _debugAtSerial |
| The stream to echo the AT traffic to if enabled. More... | |
| bool | _printAtDebug = false |
| Flag to echo the AT traffic. More... | |
The collection of registered URC handlers. Replaces the SARA-R5 processURCEvent().
|
inline |
Construct the vector and populate it with one instance of every registered URC handler.
|
inline |
Destroy the vector, deleting every handler object it owns.
|
inlineinherited |
true if AT-traffic debug messages are enabled.
|
inherited |
Echo raw AT traffic to the AT debug port, if AT debugging is enabled (enableAtDebugging).
|
inherited |
Echo one raw AT character to the AT debug port, if AT debugging is enabled.
|
inherited |
Echo raw AT traffic (binary-safe) to the AT debug port, if AT debugging is enabled.
|
inlineinherited |
Copy debug state (output streams and enabled flags) from another SfeDebugPrint.
Lets DevIridium9604::enableDebugging()/disableDebugging() push its own state onto its separately-inherited member objects (nmeaMessages, urcHandlers) right after updating it.
| other | The SfeDebugPrint object whose debug state to copy. |
|
inlineinherited |
true if debug messages are enabled.
|
inherited |
Print a debug message (no trailing newline), if debugging is enabled.
|
inherited |
Print a signed debug value in decimal, if debugging is enabled.
|
inherited |
Print a signed debug value in a given base (e.g. HEX, DEC), if debugging is enabled.
|
inherited |
Print a signed (long) debug value in decimal, if debugging is enabled.
|
inherited |
Print a signed (long) debug value in a given base, if debugging is enabled.
|
inherited |
Print an unsigned debug value in decimal, if debugging is enabled.
|
inherited |
Print an unsigned debug value in a given base (e.g. HEX, DEC), if debugging is enabled.
|
inherited |
Print an unsigned (long) debug value in decimal, if debugging is enabled.
|
inherited |
Print an unsigned (long) debug value in a given base, if debugging is enabled.
|
inherited |
Print a floating point debug value with the given number of decimal places, if debugging is enabled.
|
inherited |
Print a debug message followed by a newline, if debugging is enabled.
|
inherited |
Print a signed debug value in decimal followed by a newline, if debugging is enabled.
|
inherited |
Print a signed debug value in a given base followed by a newline, if debugging is enabled.
|
inherited |
Print a signed (long) debug value in decimal followed by a newline, if debugging is enabled.
|
inherited |
Print a signed (long) debug value in a given base followed by a newline, if debugging is enabled.
|
inherited |
Print an unsigned debug value in decimal followed by a newline, if debugging is enabled.
|
inherited |
Print an unsigned debug value in a given base followed by a newline, if debugging is enabled.
|
inherited |
Print an unsigned (long) debug value in decimal followed by a newline, if debugging is enabled.
|
inherited |
Print an unsigned (long) debug value in a given base followed by a newline, if debugging is enabled.
|
inherited |
Print a blank debug line, if debugging is enabled and not in limited-debug mode.
|
inherited |
Write a single raw character to the debug port, if debugging is enabled.
|
inline |
Find the registered handler for a URC prefix.
| urcPrefix | The URC prefix, e.g. "+UUSORD:" (IRIDIUM_9604_READ_SOCKET_URC). |
|
inline |
Does this event contain a URC we want to keep in the backlog? Used by pruneBacklog().
|
inline |
Pass an event to the handlers. The first handler which matches and decodes it, wins.
| device | The DevIridium9604 services available to the handlers. |
| event | One event (one line, with the CR LF removed). |
|
inline |
Register (or clear) a user callback for a URC.
| urcPrefix | The URC prefix, e.g. "+UUSORD:". |
| callback | The callback, cast to urcCallback_t. nullptr clears the callback. |
| index | Which of the URC's callbacks to set. Usually 0. |
|
protectedinherited |
The stream to echo the AT traffic to if enabled.
|
protectedinherited |
The stream to send debug messages to if enabled.
|
protectedinherited |
Flag to echo the AT traffic.
|
protectedinherited |
Flag to print the debug messages.
|
protectedinherited |
Flag to print limited (important only) debug messages.
| std::vector<urcHandler *> SparkFun_Iridium_9604::urcHandlerVector::urcHandlerVectors |
The URC handler objects.