SparkFun Iridium 9604  v1.0.0
Library for the Iridium 9604 Hybrid LTE-M Cellular + Iridium Satellite (SBD) + GNSS IoT module
Loading...
Searching...
No Matches
sfe_debug.h File Reference
#include "sfe_platform.h"
#include "sfe_bus.h"
Include dependency graph for sfe_debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SparkFun_Iridium_9604::SfeDebugPrint
 Debug printing: replaces the SARA-R5 library _debugPort prints. A base class of DevIridium9604 and the URC / NMEA classes. More...
 

Namespaces

namespace  SparkFun_Iridium_9604
 

Detailed Description

Date
2026

SPDX-License-Identifier: MIT

Please see LICENSE.md for more details

https://github.com/sparkfun/SparkFun_Iridium_9604_Library

SfeDebugPrint: the debugPrint() / debugPrintln() helpers, in their own small base class so that other classes (DevIridium9604, nmeaMessageVector, urcHandlerVector) can all inherit real, working debug-print support.

Based on sfe_debug.h from the SparkFun u-blox GNSS v4 library. Extended for the Iridium library:

  • integer overloads for int / unsigned int / long / unsigned long (the original SARA-R5 library printed signed values, enums and sizes in its diagnostics)
  • debugWrite() for raw characters
  • the "AT debug" stream (enableAtDebugging) which echoes the raw AT traffic

As in GNSS v4, each inheriting object has its own copy of the debug state. copyDebugStateFrom() lets DevIridium9604::enableDebugging() push its state onto its member nmeaMessages / urcHandlers objects, so they stay in sync per-instance without any shared/static state.