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+
19#ifndef ARDUINO_CELLULAR_MODEM_H
210#define ARDUINO_CELLULAR_MODEM_H
311
@@ -18,34 +26,50 @@ enum ModemModel {
1826 Unsupported
1927};
2028
29+ /* *
30+ * Represents an SMS message.
31+ */
2132class SMS {
2233 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. */
2637
38+ /* *
39+ * Default constructor for SMS.
40+ * Initializes the number, message, and timestamp to empty values.
41+ */
2742 SMS () {
2843 this ->number = " " ;
2944 this ->message = " " ;
3045 this ->timestamp = Time ();
3146 }
3247
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+ */
3354 SMS (String number, String message, Time timestamp) {
3455 this ->number = number;
3556 this ->message = message;
3657 this ->timestamp = timestamp;
3758 }
3859};
39- // TODO: move time implementation to Time class
4060
61+
62+ /* *
63+ * @struct Location
64+ * @brief Represents a geographic location with latitude and longitude coordinates.
65+ */
4166struct 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. */
4469};
4570
4671/* *
47- * @class ArduinoPro_Modem
48- * @brief Represents an Arduino Pro Modem.
72+ * @class ArduinoCellular
4973 *
5074 * This class provides methods to interact with the Arduino Pro Modem, such as connecting to the network,
5175 * sending SMS messages, getting GPS location, and more.
0 commit comments