Skip to content

Commit cc6c229

Browse files
committed
Update SendReceive examples
1 parent 0ede286 commit cc6c229

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

examples/I2C_Examples__Qwiic_Iridium/Example6_SendReceive/Example6_SendReceive.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ void setup()
4747
//clean up
4848
while(Serial.available() > 0) Serial.read();
4949

50+
// If desired, you can set the SBD session timeout to prevent unhelpful ISBD_PROTOCOL_ERRORs.
51+
// The default is 0 (no timeout).
52+
#define SATELLITE_TIMEOUT_SBDIX 30
53+
//modem.adjustATTimeout(SATELLITE_TIMEOUT_SBDIX + 2); // Set the AT timeout slightly longer
54+
//modem.adjustSBDSessionTimeout(SATELLITE_TIMEOUT_SBDIX); // Set the SBD timeout to 30 seconds
55+
5056
// Start the I2C wire port connected to the satellite modem
5157
Wire.begin();
5258
Wire.setClock(400000); //Set I2C clock speed to 400kHz

examples/Serial_Examples__RockBLOCK/Example6_SendReceive/Example6_SendReceive.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ void setup()
3636
while (!Serial);
3737
IridiumSerial.begin(19200);
3838

39+
// If desired, you can set the SBD session timeout to prevent unhelpful ISBD_PROTOCOL_ERRORs.
40+
// The default is 0 (no timeout).
41+
#define SATELLITE_TIMEOUT_SBDIX 30
42+
//modem.adjustATTimeout(SATELLITE_TIMEOUT_SBDIX + 2); // Set the AT timeout slightly longer
43+
//modem.adjustSBDSessionTimeout(SATELLITE_TIMEOUT_SBDIX); // Set the SBD timeout to 30 seconds
44+
3945
// Setup the Iridium modem
4046
modem.setPowerProfile(IridiumSBD::USB_POWER_PROFILE);
4147
if (modem.begin() != ISBD_SUCCESS)

0 commit comments

Comments
 (0)