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
SparkFun_Iridium_9604.h
Go to the documentation of this file.
1
49#pragma once
50
51#include "sfe_platform.h"
52#include "sfe_bus.h"
53#include "Iridium_9604.h"
54
57{
58public:
66 SFE_IRIDIUM_9604(int powerPin = IRIDIUM_9604_POWER_PIN, int resetPin = IRIDIUM_9604_RESET_PIN, uint8_t maxInitTries = 9)
67 : DevIridium9604(powerPin, resetPin, maxInitTries)
68 {
69 }
70
71#if defined(SFE_IRIDIUM_ARDUINO)
72
86 bool begin(HardwareSerial &hardSerial, unsigned long baud = 9600)
87 {
88 _serial.init(hardSerial);
89 setCommunicationBus(_serial);
90 return DevIridium9604::begin(baud);
91 }
92
93#elif defined(SFE_IRIDIUM_ESP_IDF)
94
106 bool begin(uart_port_t port, unsigned long baud = 9600)
107 {
108 if (!_serial.init(port))
109 return false;
110 setCommunicationBus(_serial);
111 return DevIridium9604::begin(baud);
112 }
113
114#endif
115
116private:
117 SparkFun_Iridium_9604::SfeSerial _serial;
118};
#define IRIDIUM_9604_RESET_PIN
The default reset pin: not connected.
Definition: Iridium_9604_typedefs.h:25
#define IRIDIUM_9604_POWER_PIN
Default to no pin.
Definition: Iridium_9604_typedefs.h:24
The Iridium 9604 device class: all of the AT command, URC, NMEA and satellite methods....
Definition: Iridium_9604.h:62
void setCommunicationBus(SparkFun_Iridium_9604::IridiumDeviceBus &theBus)
Set the communication bus. Called by the begin() methods of SFE_IRIDIUM_9604. Call it yourself to use...
Definition: Iridium_9604.cpp:92
bool begin(unsigned long baud)
Initialize the module and ensure it is connected. Autobauds the module to baud if required....
Definition: Iridium_9604.cpp:97
The SparkFun Iridium 9604 class. Use this in your code. It adds the begin() methods to DevIridium9604...
Definition: SparkFun_Iridium_9604.h:57
SFE_IRIDIUM_9604(int powerPin=IRIDIUM_9604_POWER_PIN, int resetPin=IRIDIUM_9604_RESET_PIN, uint8_t maxInitTries=9)
Construct an SFE_IRIDIUM_9604 object.
Definition: SparkFun_Iridium_9604.h:66