File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
I2C_Examples__Qwiic_Iridium/Example6_SendReceive
Serial_Examples__RockBLOCK/Example6_SendReceive Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments