@@ -5,13 +5,13 @@ UBX_CELL_error_t SARA_R5::setUtimeMode(UBX_CELL_utime_mode_t mode, UBX_CELL_utim
5
5
UBX_CELL_error_t err;
6
6
char *command;
7
7
8
- command = ubx_cell_calloc_char (strlen (SARA_R5_GNSS_REQUEST_TIME ) + 16 );
8
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_GNSS_REQUEST_TIME ) + 16 );
9
9
if (command == nullptr )
10
10
return UBX_CELL_ERROR_OUT_OF_MEMORY;
11
11
if (mode == UBX_CELL_UTIME_MODE_STOP) // stop UTIME does not require a sensor
12
- sprintf (command, " %s=%d" , SARA_R5_GNSS_REQUEST_TIME , mode);
12
+ sprintf (command, " %s=%d" , UBX_CELL_GNSS_REQUEST_TIME , mode);
13
13
else
14
- sprintf (command, " %s=%d,%d" , SARA_R5_GNSS_REQUEST_TIME , mode, sensor);
14
+ sprintf (command, " %s=%d,%d" , UBX_CELL_GNSS_REQUEST_TIME , mode, sensor);
15
15
16
16
err = sendCommandWithResponse (command, UBX_CELL_RESPONSE_OK_OR_ERROR,
17
17
nullptr , UBX_CELL_10_SEC_TIMEOUT);
@@ -28,10 +28,10 @@ UBX_CELL_error_t SARA_R5::getUtimeMode(UBX_CELL_utime_mode_t *mode, UBX_CELL_uti
28
28
UBX_CELL_utime_mode_t m;
29
29
UBX_CELL_utime_sensor_t s;
30
30
31
- command = ubx_cell_calloc_char (strlen (SARA_R5_GNSS_REQUEST_TIME ) + 2 );
31
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_GNSS_REQUEST_TIME ) + 2 );
32
32
if (command == nullptr )
33
33
return UBX_CELL_ERROR_OUT_OF_MEMORY;
34
- sprintf (command, " %s?" , SARA_R5_GNSS_REQUEST_TIME );
34
+ sprintf (command, " %s?" , UBX_CELL_GNSS_REQUEST_TIME );
35
35
36
36
response = ubx_cell_calloc_char (minimumResponseAllocation);
37
37
if (response == nullptr )
@@ -80,10 +80,10 @@ UBX_CELL_error_t SARA_R5::setUtimeIndication(UBX_CELL_utime_urc_configuration_t
80
80
UBX_CELL_error_t err;
81
81
char *command;
82
82
83
- command = ubx_cell_calloc_char (strlen (SARA_R5_GNSS_TIME_INDICATION ) + 16 );
83
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_GNSS_TIME_INDICATION ) + 16 );
84
84
if (command == nullptr )
85
85
return UBX_CELL_ERROR_OUT_OF_MEMORY;
86
- sprintf (command, " %s=%d" , SARA_R5_GNSS_TIME_INDICATION , config);
86
+ sprintf (command, " %s=%d" , UBX_CELL_GNSS_TIME_INDICATION , config);
87
87
88
88
err = sendCommandWithResponse (command, UBX_CELL_RESPONSE_OK_OR_ERROR,
89
89
nullptr , UBX_CELL_STANDARD_RESPONSE_TIMEOUT);
@@ -99,10 +99,10 @@ UBX_CELL_error_t SARA_R5::getUtimeIndication(UBX_CELL_utime_urc_configuration_t
99
99
100
100
UBX_CELL_utime_urc_configuration_t c;
101
101
102
- command = ubx_cell_calloc_char (strlen (SARA_R5_GNSS_TIME_INDICATION ) + 2 );
102
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_GNSS_TIME_INDICATION ) + 2 );
103
103
if (command == nullptr )
104
104
return UBX_CELL_ERROR_OUT_OF_MEMORY;
105
- sprintf (command, " %s?" , SARA_R5_GNSS_TIME_INDICATION );
105
+ sprintf (command, " %s?" , UBX_CELL_GNSS_TIME_INDICATION );
106
106
107
107
response = ubx_cell_calloc_char (minimumResponseAllocation);
108
108
if (response == nullptr )
@@ -144,13 +144,13 @@ UBX_CELL_error_t SARA_R5::setUtimeConfiguration(int32_t offsetNanoseconds, int32
144
144
UBX_CELL_error_t err;
145
145
char *command;
146
146
147
- command = ubx_cell_calloc_char (strlen (SARA_R5_GNSS_TIME_CONFIGURATION ) + 48 );
147
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_GNSS_TIME_CONFIGURATION ) + 48 );
148
148
if (command == nullptr )
149
149
return UBX_CELL_ERROR_OUT_OF_MEMORY;
150
150
#if defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_ARCH_ESP8266)
151
- sprintf (command, " %s=%d,%d" , SARA_R5_GNSS_TIME_CONFIGURATION , offsetNanoseconds, offsetSeconds);
151
+ sprintf (command, " %s=%d,%d" , UBX_CELL_GNSS_TIME_CONFIGURATION , offsetNanoseconds, offsetSeconds);
152
152
#else
153
- sprintf (command, " %s=%ld,%ld" , SARA_R5_GNSS_TIME_CONFIGURATION , offsetNanoseconds, offsetSeconds);
153
+ sprintf (command, " %s=%ld,%ld" , UBX_CELL_GNSS_TIME_CONFIGURATION , offsetNanoseconds, offsetSeconds);
154
154
#endif
155
155
156
156
err = sendCommandWithResponse (command, UBX_CELL_RESPONSE_OK_OR_ERROR,
@@ -168,10 +168,10 @@ UBX_CELL_error_t SARA_R5::getUtimeConfiguration(int32_t *offsetNanoseconds, int3
168
168
int32_t ons;
169
169
int32_t os;
170
170
171
- command = ubx_cell_calloc_char (strlen (SARA_R5_GNSS_TIME_CONFIGURATION ) + 2 );
171
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_GNSS_TIME_CONFIGURATION ) + 2 );
172
172
if (command == nullptr )
173
173
return UBX_CELL_ERROR_OUT_OF_MEMORY;
174
- sprintf (command, " %s?" , SARA_R5_GNSS_TIME_CONFIGURATION );
174
+ sprintf (command, " %s?" , UBX_CELL_GNSS_TIME_CONFIGURATION );
175
175
176
176
response = ubx_cell_calloc_char (minimumResponseAllocation);
177
177
if (response == nullptr )
@@ -220,10 +220,10 @@ UBX_CELL_error_t SARA_R5::setPDPconfiguration(int profile, UBX_CELL_pdp_configur
220
220
if (profile >= UBX_CELL_NUM_PSD_PROFILES)
221
221
return UBX_CELL_ERROR_ERROR;
222
222
223
- command = ubx_cell_calloc_char (strlen (SARA_R5_MESSAGE_PDP_CONFIG ) + 24 );
223
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_MESSAGE_PDP_CONFIG ) + 24 );
224
224
if (command == nullptr )
225
225
return UBX_CELL_ERROR_OUT_OF_MEMORY;
226
- sprintf (command, " %s=%d,%d,%d" , SARA_R5_MESSAGE_PDP_CONFIG , profile, parameter,
226
+ sprintf (command, " %s=%d,%d,%d" , UBX_CELL_MESSAGE_PDP_CONFIG , profile, parameter,
227
227
value);
228
228
229
229
err = sendCommandWithResponse (command, UBX_CELL_RESPONSE_OK_OR_ERROR, nullptr ,
@@ -246,10 +246,10 @@ UBX_CELL_error_t SARA_R5::setPDPconfiguration(int profile, UBX_CELL_pdp_configur
246
246
if (profile >= UBX_CELL_NUM_PSD_PROFILES)
247
247
return UBX_CELL_ERROR_ERROR;
248
248
249
- command = ubx_cell_calloc_char (strlen (SARA_R5_MESSAGE_PDP_CONFIG ) + 64 );
249
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_MESSAGE_PDP_CONFIG ) + 64 );
250
250
if (command == nullptr )
251
251
return UBX_CELL_ERROR_OUT_OF_MEMORY;
252
- sprintf (command, " %s=%d,%d,\" %s\" " , SARA_R5_MESSAGE_PDP_CONFIG , profile, parameter,
252
+ sprintf (command, " %s=%d,%d,\" %s\" " , UBX_CELL_MESSAGE_PDP_CONFIG , profile, parameter,
253
253
value.c_str ());
254
254
255
255
err = sendCommandWithResponse (command, UBX_CELL_RESPONSE_OK_OR_ERROR, nullptr ,
@@ -267,10 +267,10 @@ UBX_CELL_error_t SARA_R5::setPDPconfiguration(int profile, UBX_CELL_pdp_configur
267
267
if (profile >= UBX_CELL_NUM_PSD_PROFILES)
268
268
return UBX_CELL_ERROR_ERROR;
269
269
270
- command = ubx_cell_calloc_char (strlen (SARA_R5_MESSAGE_PDP_CONFIG ) + 64 );
270
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_MESSAGE_PDP_CONFIG ) + 64 );
271
271
if (command == nullptr )
272
272
return UBX_CELL_ERROR_OUT_OF_MEMORY;
273
- sprintf (command, " %s=%d,%d,\" %d.%d.%d.%d\" " , SARA_R5_MESSAGE_PDP_CONFIG , profile, parameter,
273
+ sprintf (command, " %s=%d,%d,\" %d.%d.%d.%d\" " , UBX_CELL_MESSAGE_PDP_CONFIG , profile, parameter,
274
274
value[0 ], value[1 ], value[2 ], value[3 ]);
275
275
276
276
err = sendCommandWithResponse (command, UBX_CELL_RESPONSE_OK_OR_ERROR, nullptr ,
@@ -288,10 +288,10 @@ UBX_CELL_error_t SARA_R5::performPDPaction(int profile, UBX_CELL_pdp_actions_t a
288
288
if (profile >= UBX_CELL_NUM_PSD_PROFILES)
289
289
return UBX_CELL_ERROR_ERROR;
290
290
291
- command = ubx_cell_calloc_char (strlen (SARA_R5_MESSAGE_PDP_ACTION ) + 32 );
291
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_MESSAGE_PDP_ACTION ) + 32 );
292
292
if (command == nullptr )
293
293
return UBX_CELL_ERROR_OUT_OF_MEMORY;
294
- sprintf (command, " %s=%d,%d" , SARA_R5_MESSAGE_PDP_ACTION , profile, action);
294
+ sprintf (command, " %s=%d,%d" , UBX_CELL_MESSAGE_PDP_ACTION , profile, action);
295
295
296
296
err = sendCommandWithResponse (command, UBX_CELL_RESPONSE_OK_OR_ERROR, nullptr ,
297
297
UBX_CELL_STANDARD_RESPONSE_TIMEOUT);
@@ -310,10 +310,10 @@ UBX_CELL_error_t SARA_R5::getNetworkAssignedIPAddress(int profile, IPAddress *ad
310
310
int paramTag = 0 ; // 0: IP address: dynamic IP address assigned during PDP context activation
311
311
int paramVals[4 ];
312
312
313
- command = ubx_cell_calloc_char (strlen (SARA_R5_NETWORK_ASSIGNED_DATA ) + 16 );
313
+ command = ubx_cell_calloc_char (strlen (UBX_CELL_NETWORK_ASSIGNED_DATA ) + 16 );
314
314
if (command == nullptr )
315
315
return UBX_CELL_ERROR_OUT_OF_MEMORY;
316
- sprintf (command, " %s=%d,%d" , SARA_R5_NETWORK_ASSIGNED_DATA , profile, paramTag);
316
+ sprintf (command, " %s=%d,%d" , UBX_CELL_NETWORK_ASSIGNED_DATA , profile, paramTag);
317
317
318
318
response = ubx_cell_calloc_char (minimumResponseAllocation);
319
319
if (response == nullptr )
0 commit comments