@@ -162,20 +162,6 @@ const char SARA_R5_RESPONSE_ERROR[] = "\nERROR\r\n";
162
162
const char SARA_R5_RESPONSE_CONNECT [] = "\r\nCONNECT\r\n" ;
163
163
#define SARA_R5_RESPONSE_OK_OR_ERROR nullptr
164
164
165
- // CTRL+Z and ESC ASCII codes for SMS message sends
166
- const char ASCII_CTRL_Z = 0x1A ;
167
- const char ASCII_ESC = 0x1B ;
168
-
169
- // NMEA data size - used by parseGPRMCString
170
- #define TEMP_NMEA_DATA_SIZE 16
171
-
172
- #define NOT_AT_COMMAND false
173
- #define AT_COMMAND true
174
-
175
- // The minimum memory allocation for responses from sendCommandWithResponse
176
- // This needs to be large enough to hold the response you're expecting plus and URC's that may arrive during the timeout
177
- #define minimumResponseAllocation 128
178
-
179
165
#define SARA_R5_NUM_SOCKETS 6
180
166
181
167
#define NUM_SUPPORTED_BAUD 6
@@ -197,33 +183,6 @@ typedef enum
197
183
SARA_R5_ENABLE_FLOW_CONTROL = 3
198
184
} SARA_R5_flow_control_t ;
199
185
200
- // The standard Europe profile should be used as the basis for all other MNOs in Europe outside of Vodafone
201
- // and Deutsche Telekom. However, there may be changes that need to be applied to the module for proper
202
- // operation with any given European MNO such as attach type, RAT preference, band selection, etc. Please
203
- // consult with the preferred network provider.
204
- typedef enum
205
- {
206
- MNO_INVALID = -1 ,
207
- MNO_SW_DEFAULT = 0 , // Undefined / regulatory
208
- MNO_SIM_ICCID = 1 ,
209
- MNO_ATT = 2 , // AT&T
210
- MNO_VERIZON = 3 ,
211
- MNO_TELSTRA = 4 ,
212
- MNO_TMO = 5 , // T-Mobile US
213
- MNO_CT = 6 , // China Telecom
214
- MNO_SPRINT = 8 ,
215
- MNO_VODAFONE = 19 ,
216
- MNO_NTT_DOCOMO = 20 ,
217
- MNO_TELUS = 21 ,
218
- MNO_SOFTBANK = 28 ,
219
- MNO_DT = 31 , // Deutsche Telekom
220
- MNO_US_CELLULAR = 32 ,
221
- MNO_SKT = 39 ,
222
- MNO_GLOBAL = 90 ,
223
- MNO_STD_EUROPE = 100 ,
224
- MNO_STD_EU_NOEPCO = 101
225
- } mobile_network_operator_t ;
226
-
227
186
typedef enum
228
187
{
229
188
SARA_R5_ERROR_INVALID = -1 , // -1
@@ -255,64 +214,6 @@ typedef enum
255
214
SARA_R5_REGISTRATION_ROAMING_CSFB_NOT_PREFERRED = 10
256
215
} SARA_R5_registration_status_t ;
257
216
258
- struct DateData
259
- {
260
- uint8_t day;
261
- uint8_t month;
262
- unsigned int year;
263
- };
264
-
265
- struct TimeData
266
- {
267
- uint8_t hour;
268
- uint8_t minute;
269
- uint8_t second;
270
- unsigned int ms;
271
- uint8_t tzh;
272
- uint8_t tzm;
273
- };
274
-
275
- struct ClockData
276
- {
277
- struct DateData date;
278
- struct TimeData time;
279
- };
280
-
281
- struct PositionData
282
- {
283
- float utc;
284
- float lat; // Degrees: +/- 90
285
- float lon; // Degrees: +/- 180
286
- float alt;
287
- char mode;
288
- char status;
289
- };
290
-
291
- struct SpeedData
292
- {
293
- float speed; // m/s
294
- float cog; // Degrees
295
- float magVar; // Degrees
296
- };
297
-
298
- struct operator_stats
299
- {
300
- uint8_t stat;
301
- String shortOp;
302
- String longOp;
303
- unsigned long numOp;
304
- uint8_t act;
305
- };
306
-
307
- typedef struct ext_signal_quality_ {
308
- unsigned int rxlev;
309
- unsigned int ber;
310
- unsigned int rscp;
311
- unsigned int enc0;
312
- unsigned int rsrq;
313
- unsigned int rsrp;
314
- } signal_quality;
315
-
316
217
typedef enum
317
218
{
318
219
SARA_R5_TCP = 6 ,
@@ -454,9 +355,6 @@ typedef enum
454
355
SARA_R5_MQTT_COMMAND_PUBLISHBINARY ,
455
356
} SARA_R5_mqtt_command_opcode_t ;
456
357
457
- constexpr uint16_t MAX_MQTT_HEX_MSG_LEN = 512 ;
458
- constexpr uint16_t MAX_MQTT_DIRECT_MSG_LEN = 1024 ;
459
-
460
358
typedef enum
461
359
{
462
360
SARA_R5_FTP_PROFILE_IPADDRESS = 0 ,
@@ -569,19 +467,4 @@ typedef enum
569
467
SARA_R5_SEC_MANAGER_SERVER_CERT
570
468
} SARA_R5_sec_manager_parameter_t ;
571
469
572
- typedef enum
573
- {
574
- MINIMUM_FUNCTIONALITY = 0 , // (disable both transmit and receive RF circuits by deactivating both CS and PS services)
575
- FULL_FUNCTIONALITY = 1 ,
576
- AIRPLANE_MODE = 4 ,
577
- SIM_TOOLKIT_ENABLE_DEDICATED = 6 ,
578
- SIM_TOOLKIT_DISABLE_DEDICATED = 7 ,
579
- SIM_TOOLKIT_ENABLE_RAW = 9 ,
580
- FAST_SAFE_POWER_OFF = 10 ,
581
- // SILENT_RESET_WITHOUT_SIM = 15, // Not supported on SARA-R5
582
- SILENT_RESET_WITH_SIM = 16
583
- // MINIMUM_FUNCTIONALITY = 19, // Not supported on SARA-R5
584
- // DEEP_LOW_POWER_STATE = 127 // Not supported on SARA-R5
585
- } SARA_R5_functionality_t;
586
-
587
470
#endif //SPARKFUN_SARA_R5_ARDUINO_LIBRARY_H
0 commit comments