44typedef enum _SIM900DialResult {
46 SIM900_DIAL_RESULT_NO_DIALTONE,
49 SIM900_DIAL_RESULT_BUSY,
52 SIM900_DIAL_RESULT_NO_CARRIER,
55 SIM900_DIAL_RESULT_NO_ANSWER,
58 SIM900_DIAL_RESULT_ERROR,
73typedef enum _SIM900OperatorFormat {
75 SIM900_OPERATOR_FORMAT_AUTO,
78 SIM900_OPERATOR_FORMAT_MANUAL,
81 SIM900_OPERATOR_FORMAT_DEREGISTER,
84 SIM900_OPERATOR_FORMAT_SET_ONLY,
87 SIM900_OPERATOR_FORMAT_MANUAL_AUTO
88} SIM900OperatorFormat;
100inline SIM900OperatorFormat intToSIM900OperatorFormat(uint8_t i){
101 if(i < SIM900OperatorFormat::SIM900_OPERATOR_FORMAT_AUTO ||
102 i > SIM900OperatorFormat::SIM900_OPERATOR_FORMAT_MANUAL_AUTO)
103 return SIM900OperatorFormat::SIM900_OPERATOR_FORMAT_AUTO;
105 return static_cast<SIM900OperatorFormat
>(i);
117typedef enum _SIM900OperatorMode {
119 SIM900_OPERATOR_MODE_GSM,
122 SIM900_OPERATOR_MODE_GSM_COMPACT,
125 SIM900_OPERATOR_MODE_UTRAN,
128 SIM900_OPERATOR_MODE_GSM_EGPRS,
131 SIM900_OPERATOR_MODE_UTRAN_HSDPA,
134 SIM900_OPERATOR_MODE_UTRAN_HSUPA,
137 SIM900_OPERATOR_MODE_UTRAN_HSDPA_HSUPA,
140 SIM900_OPERATOR_MODE_E_UTRAN
153inline SIM900OperatorMode intToSIM900OperatorMode(
int i){
154 if(i < SIM900OperatorMode::SIM900_OPERATOR_MODE_GSM ||
155 i > SIM900OperatorMode::SIM900_OPERATOR_MODE_E_UTRAN)
156 return SIM900OperatorMode::SIM900_OPERATOR_MODE_GSM;
158 return static_cast<SIM900OperatorMode
>(i);
169typedef enum _SIM900CardService {
171 SIM900_CARD_SERVICE_ASYNC,
174 SIM900_CARD_SERVICE_SYNC,
177 SIM900_CARD_SERVICE_PAD_ACCESS,
180 SIM900_CARD_SERVICE_PACKET,
183 SIM900_CARD_SERVICE_VOICE,
186 SIM900_CARD_SERVICE_FAX
199inline SIM900CardService intToSIM900CardService(uint8_t i){
200 if(i < SIM900CardService::SIM900_CARD_SERVICE_ASYNC ||
201 i > SIM900CardService::SIM900_CARD_SERVICE_FAX)
202 return SIM900CardService::SIM900_CARD_SERVICE_ASYNC;
204 return static_cast<SIM900CardService
>(i);
216typedef enum _SIM900PhonebookType {
218 SIM900_PHONEBOOK_NATIONAL = 145,
221 SIM900_PHONEBOOK_INTERNATIONAL = 129,
224 SIM900_PHONEBOOK_UNKNOWN = 0
225} SIM900PhonebookType;
A structure representing Access Point Name (APN) configuration for mobile data.
A structure representing a card account, including name, number, type, and service information.
A structure representing an HTTP request.
A structure representing an HTTP response.
A structure representing mobile network operator information.
A structure representing the capacity of a phonebook memory type.
A structure representing real-time clock (RTC) information.
A structure representing signal strength and bit error rate information.
String username
The username for APN authentication.
String apn
The Access Point Name (APN) for data connectivity.
String password
The password for APN authentication.
uint8_t type
The card's type (e.g., SIM card).
String name
The name associated with the card account.
SIM900CardService service
The type of card service (e.g., voice, data) associated with the card account.
SIM900PhonebookType numberType
The type of phonebook (national, international) where the number is stored.
uint8_t speed
The card's speed or data rate.
String number
The card's phone number.
String data
The data to be included in the request (e.g., POST data).
String resource
The resource or URL path to access on the server.
uint16_t header_count
The number of HTTP headers in the array.
String domain
The domain or server to which the request is sent.
SIM900HTTPHeader * headers
An array of HTTP headers associated with the request.
uint16_t port
The port on which the server is listening (e.g., 80 for HTTP).
String method
The HTTP method for the request (e.g., GET, POST).
uint8_t status
The status of the HTTP request.
String data
The data received in the HTTP response, such as HTML content or JSON data.
SIM900HTTPHeader * headers
An array of HTTP headers included in the response.
uint16_t header_count
The number of HTTP headers in the array.
uint16_t status
The HTTP status code of the response.
SIM900OperatorFormat format
The operator selection format.
String name
The name of the mobile network operator.
SIM900OperatorMode mode
The operating mode of the mobile network operator.
uint8_t used
The number of entries used in the phonebook memory.
uint8_t max
The maximum number of entries that can be stored in the phonebook memory.
String memoryType
The type of phonebook memory (e.g., "SM" for SIM memory).
uint8_t minute
Time component: minute.
int8_t gmt
GMT (Greenwich Mean Time) offset in hours.
uint8_t year
Date component: year.
uint8_t day
Date component: day.
uint8_t month
Date component: month.
uint8_t second
Time component: second.
uint8_t hour
Time component: hour.
uint8_t rssi
Received Signal Strength Indication (RSSI) in decibels (dBm).
uint8_t bit_error_rate
Bit Error Rate (BER) as a unitless ratio.