Skip to content

Commit 8fbe23f

Browse files
committed
Change default baud rate
Not all modules support 9600, 115200 is a better default
1 parent 1ab5265 commit 8fbe23f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/Example1_DeviceIdentification/Example1_DeviceIdentification.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void setup()
6363
myModule.invertPowerPin(true);
6464

6565
// Initialize the SARA
66-
if (myModule.begin(mySerial, 9600) )
66+
if (myModule.begin(mySerial, UBX_CELL_DEFAULT_BAUD_RATE) )
6767
{
6868
Serial.println(F("SARA-R5 connected!"));
6969
}

src/sfe_ublox_cellular.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,9 @@ class UBX_CELL : public Print
646646
~UBX_CELL();
647647
// Begin -- initialize module and ensure it's connected
648648
#ifdef UBX_CELL_SOFTWARE_SERIAL_ENABLED
649-
bool begin(SoftwareSerial &softSerial, unsigned long baud = 9600);
649+
bool begin(SoftwareSerial &softSerial, unsigned long baud = UBX_CELL_DEFAULT_BAUD_RATE);
650650
#endif
651-
bool begin(HardwareSerial &hardSerial, unsigned long baud = 9600);
651+
bool begin(HardwareSerial &hardSerial, unsigned long baud = UBX_CELL_DEFAULT_BAUD_RATE);
652652

653653
// Debug prints
654654
void enableDebugging(Print &debugPort = Serial); //Turn on debug printing. If user doesn't specify then Serial will be used.

0 commit comments

Comments
 (0)