Skip to content

Commit ea0f9fe

Browse files
committed
Added the library helper link
1 parent 381f178 commit ea0f9fe

File tree

21 files changed

+153
-153
lines changed

21 files changed

+153
-153
lines changed

examples/I2C_Examples__Qwiic_Iridium/Example10_LoopBack/Example10_LoopBack.ino

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
#include <IridiumSBD.h>
1+
#include <IridiumSBD.h> // Click here to get the library: http://librarymanager/All#IridiumSBDI2C
22

33
#include <Wire.h> //Needed for I2C communication
44

55
/*
66
* Loop Back
7-
*
7+
*
88
* This sketch demonstrates how to forward a message to another RockBLOCK
99
* via the Rock7 RockBLOCK Gateway. The message is looped back to your
1010
* RockBLOCK by prefixing the message with "RB" and the RockBLOCK serial
1111
* number of your transceiver padded out to seven digits.
12-
*
12+
*
1313
* Assumptions
14-
*
14+
*
1515
* The sketch assumes an Arduino Mega or other Arduino-like device with
1616
* a serial console and a hardware I2C (Wire) port. It assumes
1717
* the SparkFun Qwiic Iridium 9603N is connected via I2C.
18-
*
18+
*
1919
* Open the Serial Monitor and set the Baud Rate to 115200
2020
* and the line ending to Carriage Return
21-
*
21+
*
2222
* Part of the code is based on Tom Igoe's Serial Event example:
2323
* https://www.arduino.cc/en/Tutorial/SerialEvent
2424
*/
@@ -39,7 +39,7 @@ void setup()
3939
Serial.begin(115200);
4040
while (!Serial); // Wait for the user to open the serial monitor
4141
Serial.println(F("Iridium SBD Loop Back I2C"));
42-
42+
4343
//empty the serial buffer
4444
while(Serial.available() > 0) Serial.read();
4545

@@ -130,7 +130,7 @@ void loop()
130130
// Process the string when a carriage return arrives:
131131
int RockBLOCK = inputString.toInt(); // Convert the serial number to int
132132
Serial.println(RockBLOCK);
133-
133+
134134
// Construct the message
135135
// Prefix with "RB" and the RockBLOCK serial number padded out to seven digits
136136
char outBuffer[50]; // Always try to keep message short
@@ -170,7 +170,7 @@ void loop()
170170
size_t bufferSize = sizeof(buffer);
171171

172172
err = modem.sendReceiveSBDText(NULL, buffer, bufferSize);
173-
173+
174174
if (err != ISBD_SUCCESS)
175175
{
176176
Serial.print(F("sendReceiveSBD* failed: error "));
@@ -194,7 +194,7 @@ void loop()
194194
}
195195
else
196196
{
197-
Serial.println(F("The loop back failed. Are you sure you entered the correct serial number?"));
197+
Serial.println(F("The loop back failed. Are you sure you entered the correct serial number?"));
198198
}
199199
}
200200

examples/I2C_Examples__Qwiic_Iridium/Example11_LowPower/Example11_LowPower.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include <IridiumSBD.h>
1+
#include <IridiumSBD.h> // Click here to get the library: http://librarymanager/All#IridiumSBDI2C
22

33
#include <Wire.h> //Needed for I2C communication
44

55
/*
66
* LowPower_I2C
7-
*
7+
*
88
* This sketch demonstrates the low power mode of the Qwiic Iridium 9603N.
9-
*
9+
*
1010
* Assumptions
11-
*
11+
*
1212
* The sketch assumes an Arduino Mega or other Arduino-like device with
1313
* a serial console and a hardware I2C (Wire) port. It assumes
1414
* the SparkFun Qwiic Iridium 9603N is connected via I2C.
@@ -53,7 +53,7 @@ void loop()
5353
{
5454
int signalQuality = -1;
5555
int err;
56-
56+
5757
// Enable the supercapacitor charger
5858
Serial.println(F("Enabling the supercapacitor charger..."));
5959
modem.enableSuperCapCharger(true);
@@ -106,7 +106,7 @@ void loop()
106106
Serial.print(F("sleep failed: error "));
107107
Serial.println(err);
108108
}
109-
109+
110110
// Disable 9603N power
111111
Serial.println(F("Disabling 9603N power..."));
112112
modem.enable9603Npower(false);
@@ -123,7 +123,7 @@ void loop()
123123
Serial.println(F("Sleeping for 30 seconds..."));
124124

125125
delay(30000);
126-
126+
127127
// Disable the ATtiny841 low power mode
128128
// We don't really need to, but let's disable it anyway...
129129
// You can leave low power mode enabled and the code will work just fine.

examples/I2C_Examples__Qwiic_Iridium/Example1_GetIMEI/Example1_GetIMEI.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include <IridiumSBD.h>
1+
#include <IridiumSBD.h> // Click here to get the library: http://librarymanager/All#IridiumSBDI2C
22

33
#include <Wire.h> //Needed for I2C communication
44

55
/*
66
* Get IMEI
7-
*
7+
*
88
* This sketch requests the satellite modem's IMEI number.
9-
*
9+
*
1010
* Assumptions
11-
*
11+
*
1212
* The sketch assumes an Arduino Mega or other Arduino-like device with
1313
* a serial console and a hardware I2C (Wire) port. It assumes
1414
* the SparkFun Qwiic Iridium 9603N is connected via I2C.
@@ -23,7 +23,7 @@ IridiumSBD modem(IridiumWire);
2323
void setup()
2424
{
2525
int err;
26-
26+
2727
// Start the console serial port
2828
Serial.begin(115200);
2929
while (!Serial); // Wait for the user to open the serial monitor
@@ -107,7 +107,7 @@ void setup()
107107
Serial.print(F("sleep failed: error "));
108108
Serial.println(err);
109109
}
110-
110+
111111
// Disable 9603N power
112112
Serial.println(F("Disabling 9603N power..."));
113113
modem.enable9603Npower(false);

examples/I2C_Examples__Qwiic_Iridium/Example2_CheckCSQ/Example2_CheckCSQ.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
#include <IridiumSBD.h>
1+
#include <IridiumSBD.h> // Click here to get the library: http://librarymanager/All#IridiumSBDI2C
22

33
#include <Wire.h> //Needed for I2C communication
44

55
/*
66
* Check CSQ
7-
*
7+
*
88
* This sketch checks the Iridium signal quality and returns the status
99
* of the Network Available signal.
10-
*
10+
*
1111
* Assumptions
12-
*
12+
*
1313
* The sketch assumes an Arduino Mega or other Arduino-like device with
1414
* a serial console and a hardware I2C (Wire) port. It assumes
1515
* the SparkFun Qwiic Iridium 9603N is connected via I2C.
@@ -25,7 +25,7 @@ void setup()
2525
{
2626
int signalQuality = -1;
2727
int err;
28-
28+
2929
// Start the console serial port
3030
Serial.begin(115200);
3131
while (!Serial); // Wait for the user to open the serial monitor
@@ -132,7 +132,7 @@ void setup()
132132
delay(10000);
133133
}
134134
Serial.println(F("Network is available!"));
135-
135+
136136
// Power down the modem
137137
Serial.println(F("Putting the 9603N to sleep."));
138138
err = modem.sleep();
@@ -141,7 +141,7 @@ void setup()
141141
Serial.print(F("sleep failed: error "));
142142
Serial.println(err);
143143
}
144-
144+
145145
// Disable 9603N power
146146
Serial.println(F("Disabling 9603N power..."));
147147
modem.enable9603Npower(false);

examples/I2C_Examples__Qwiic_Iridium/Example3_GetTime/Example3_GetTime.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#include <IridiumSBD.h>
1+
#include <IridiumSBD.h> // Click here to get the library: http://librarymanager/All#IridiumSBDI2C
22
#include <time.h>
33
#include <Wire.h> //Needed for I2C communication
44

55
/*
66
* Time
7-
*
7+
*
88
* This sketch demonstrates how to retrieve the Iridium system time
99
* from the modem using the getSystemTime method. This uses
1010
* the Iridium command AT-MSSTM to acquire the time. The method will
1111
* fail if the Iridium network has not yet been acquired.
12-
*
12+
*
1313
* Assumptions
14-
*
14+
*
1515
* The sketch assumes an Arduino Mega or other Arduino-like device with
1616
* a serial console and a hardware I2C (Wire) port. It assumes
1717
* the SparkFun Qwiic Iridium 9603N is connected via I2C.
@@ -26,12 +26,12 @@ IridiumSBD modem(IridiumWire);
2626
void setup()
2727
{
2828
int err;
29-
29+
3030
// Start the console serial port
3131
Serial.begin(115200);
3232
while (!Serial); // Wait for the user to open the serial monitor
3333
Serial.println(F("Iridium SBD Time I2C"));
34-
34+
3535
//empty the serial buffer
3636
while(Serial.available() > 0) Serial.read();
3737

examples/I2C_Examples__Qwiic_Iridium/Example4_BasicSend/Example4_BasicSend.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#include <IridiumSBD.h>
1+
#include <IridiumSBD.h> // Click here to get the library: http://librarymanager/All#IridiumSBDI2C
22

33
#include <Wire.h> //Needed for I2C communication
44

55
/*
66
* BasicSend_I2C
7-
*
7+
*
88
* This sketch sends a "Hello, world!" message from the satellite modem.
99
* If you have activated your account and have credits, this message
1010
* should arrive at the endpoints (delivery group) you have configured
1111
* (email address or HTTP POST).
12-
*
12+
*
1313
* Assumptions
14-
*
14+
*
1515
* The sketch assumes an Arduino Mega or other Arduino-like device with
1616
* a serial console and a hardware I2C (Wire) port. It assumes
1717
* the SparkFun Qwiic Iridium 9603N is connected via I2C.
@@ -27,7 +27,7 @@ void setup()
2727
{
2828
int signalQuality = -1;
2929
int err;
30-
30+
3131
// Start the console serial port
3232
Serial.begin(115200);
3333
while (!Serial); // Wait for the user to open the serial monitor
@@ -157,7 +157,7 @@ void setup()
157157
Serial.print(F("sleep failed: error "));
158158
Serial.println(err);
159159
}
160-
160+
161161
// Disable 9603N power
162162
Serial.println(F("Disabling 9603N power..."));
163163
modem.enable9603Npower(false);

examples/I2C_Examples__Qwiic_Iridium/Example5_Sleep/Example5_Sleep.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
#include <IridiumSBD.h>
1+
#include <IridiumSBD.h> // Click here to get the library: http://librarymanager/All#IridiumSBDI2C
22

33
#include <Wire.h> //Needed for I2C communication
44

55
/*
66
* Sleep
7-
*
7+
*
88
* This sketch demonstrates how to put the Qwiic Iridium to sleep. The
99
* general strategy is to call modem.begin() to start, then modem.sleep()
1010
* to stop.
11-
*
11+
*
1212
* Assumptions
13-
*
13+
*
1414
* The sketch assumes an Arduino Mega or other Arduino-like device with
1515
* a serial console and a hardware I2C (Wire) port. It assumes
1616
* the SparkFun Qwiic Iridium 9603N is connected via I2C.
@@ -23,12 +23,12 @@
2323
IridiumSBD modem(IridiumWire);
2424

2525
void setup()
26-
{
26+
{
2727
// Start the console serial port
2828
Serial.begin(115200);
2929
while (!Serial); // Wait for the user to open the serial monitor
3030
Serial.println(F("Iridium SBD Sleep I2C"));
31-
31+
3232
//empty the serial buffer
3333
while(Serial.available() > 0) Serial.read();
3434

@@ -117,7 +117,7 @@ void loop()
117117
Serial.print(F("sleep failed: error "));
118118
Serial.println(err);
119119
}
120-
120+
121121
// Demonstrate that device is asleep
122122
Serial.println(F("Trying to send while asleep."));
123123
err = modem.sendSBDText("This shouldn't work.");

examples/I2C_Examples__Qwiic_Iridium/Example6_SendReceive/Example6_SendReceive.ino

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
#include <IridiumSBD.h>
1+
#include <IridiumSBD.h> // Click here to get the library: http://librarymanager/All#IridiumSBDI2C
22

33
#include <Wire.h> //Needed for I2C communication
44

55
/*
66
* SendReceive
7-
*
7+
*
88
* This sketch demonstrates a basic bidirectional transmission. Before
99
* loading this sketch, send a message to your Iridium modem from your
1010
* control panel or via email. This sketch will send a binary buffer
1111
* of 11 bytes, then attempt to read the next incoming messages (if any).
1212
* It stops when there are no more messages to read.
13-
*
13+
*
1414
* Assumptions
15-
*
15+
*
1616
* The sketch assumes an Arduino Mega or other Arduino-like device with
1717
* a serial console and a hardware I2C (Wire) port. It assumes
1818
* the SparkFun Qwiic Iridium 9603N is connected via I2C.
1919
*/
20-
20+
2121
#define IridiumWire Wire
2222
#define DIAGNOSTICS false // Change this to enable diagnostics
2323

2424
// Declare the IridiumSBD object using default I2C address
2525
IridiumSBD modem(IridiumWire);
2626

2727
// Define the binary test message (Fibonacci sequence)
28-
uint8_t buffer[200] =
28+
uint8_t buffer[200] =
2929
{ 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 };
3030

3131
void setup()
@@ -105,7 +105,7 @@ static bool messageSent = false;
105105
void loop()
106106
{
107107
int err;
108-
108+
109109
// Read/Write the first time or if there are any remaining messages
110110
if (!messageSent || modem.getWaitingMessageCount() > 0)
111111
{
@@ -116,7 +116,7 @@ void loop()
116116
err = modem.sendReceiveSBDBinary(buffer, 11, buffer, bufferSize);
117117
else
118118
err = modem.sendReceiveSBDText(NULL, buffer, bufferSize);
119-
119+
120120
if (err != ISBD_SUCCESS)
121121
{
122122
Serial.print(F("sendReceiveSBD* failed: error "));
@@ -142,7 +142,7 @@ void loop()
142142
Serial.print(F("Messages remaining to be retrieved: "));
143143
Serial.println(modem.getWaitingMessageCount());
144144
}
145-
145+
146146
// Clear the Mobile Originated message buffer to avoid re-sending the message during subsequent loops
147147
Serial.println(F("Clearing the MO buffer."));
148148
err = modem.clearBuffers(ISBD_CLEAR_MO); // Clear MO buffer

0 commit comments

Comments
 (0)