1
+ /* *
2
+ * @file ArduinoCellular.h
3
+ * @brief Header file for the ArduinoCellular library.
4
+ *
5
+ * This library provides methods to interact with the Arduino Pro Modem, such as connecting to the network,
6
+ * sending SMS messages, getting GPS location, and more.
7
+ */
8
+
1
9
#ifndef ARDUINO_CELLULAR_MODEM_H
2
10
#define ARDUINO_CELLULAR_MODEM_H
3
11
@@ -18,34 +26,50 @@ enum ModemModel {
18
26
Unsupported
19
27
};
20
28
29
+ /* *
30
+ * Represents an SMS message.
31
+ */
21
32
class SMS {
22
33
public:
23
- String number;
24
- String message;
25
- Time timestamp;
34
+ String number; /* *< The phone number associated with the SMS. */
35
+ String message; /* *< The content of the SMS message. */
36
+ Time timestamp; /* *< The timestamp when the SMS was received. */
26
37
38
+ /* *
39
+ * Default constructor for SMS.
40
+ * Initializes the number, message, and timestamp to empty values.
41
+ */
27
42
SMS () {
28
43
this ->number = " " ;
29
44
this ->message = " " ;
30
45
this ->timestamp = Time ();
31
46
}
32
47
48
+ /* *
49
+ * Constructor for SMS.
50
+ * @param number The phone number associated with the SMS.
51
+ * @param message The content of the SMS message.
52
+ * @param timestamp The timestamp when the SMS was received.
53
+ */
33
54
SMS (String number, String message, Time timestamp) {
34
55
this ->number = number;
35
56
this ->message = message;
36
57
this ->timestamp = timestamp;
37
58
}
38
59
};
39
- // TODO: move time implementation to Time class
40
60
61
+
62
+ /* *
63
+ * @struct Location
64
+ * @brief Represents a geographic location with latitude and longitude coordinates.
65
+ */
41
66
struct Location {
42
- float latitude;
43
- float longitude;
67
+ float latitude; /* *< The latitude coordinate of the location. */
68
+ float longitude; /* *< The longitude coordinate of the location. */
44
69
};
45
70
46
71
/* *
47
- * @class ArduinoPro_Modem
48
- * @brief Represents an Arduino Pro Modem.
72
+ * @class ArduinoCellular
49
73
*
50
74
* This class provides methods to interact with the Arduino Pro Modem, such as connecting to the network,
51
75
* sending SMS messages, getting GPS location, and more.
0 commit comments