@@ -33,7 +33,7 @@ String simStateString[] =
33
33
" Operational" // 6
34
34
};
35
35
36
- // processSIMstate is provided to the SARA-R5 library via a
36
+ // processSIMstate is provided to the u-blox cellular library via a
37
37
// callback setter -- setSIMstateReadCallback. (See setup())
38
38
void processSIMstate (UBX_CELL_sim_states_t state)
39
39
{
@@ -48,29 +48,31 @@ void setup()
48
48
Serial.begin (115200 ); // Start the serial console
49
49
50
50
// Wait for user to press key to begin
51
- Serial.println (F (" SARA-R5 Example" ));
51
+ Serial.println (F (" u-blox Cellular Example 1 - Device Identification " ));
52
52
Serial.println (F (" Press any key to begin" ));
53
53
54
54
while (!Serial.available ()) // Wait for the user to press a key (send any serial character)
55
55
;
56
56
while (Serial.available ()) // Empty the serial RX buffer
57
57
Serial.read ();
58
58
59
- // myModule.enableDebugging(); // Uncomment this line to enable helpful debug messages on Serial
59
+ Serial.println (F (" Beginning..." ));
60
+
61
+ // myModule.enableDebugging(); // Uncomment this line to enable helpful debug messages on Serial
60
62
61
63
// For the MicroMod Asset Tracker, we need to invert the power pin so it pulls high instead of low
62
- // Comment the next line if required
63
- myModule.invertPowerPin (true );
64
+ // Uncomment the next line if required
65
+ // myModule.invertPowerPin(true);
64
66
65
- // Initialize the SARA
67
+ // Initialize the module
66
68
if (myModule.begin (mySerial, UBX_CELL_DEFAULT_BAUD_RATE) )
67
69
{
68
- Serial.println (F (" SARA-R5 connected!" ));
70
+ Serial.println (F (" Module connected!" ));
69
71
}
70
72
else
71
73
{
72
- Serial.println (F (" Unable to communicate with the SARA ." ));
73
- Serial.println (F (" Manually power-on (hold the SARA On button for 3 seconds) on and try again." ));
74
+ Serial.println (F (" Unable to communicate with the module ." ));
75
+ Serial.println (F (" Manually power-on (hold the module's On button for 3 seconds) and try again." ));
74
76
while (1 ) ; // Loop forever on fail
75
77
}
76
78
Serial.println ();
@@ -95,5 +97,5 @@ void setup()
95
97
96
98
void loop ()
97
99
{
98
- myModule.poll (); // Keep processing data from the SARA so we can extract the SIM status
100
+ myModule.poll (); // Keep processing data from the module so we can extract the SIM status
99
101
}
0 commit comments