27 #ifndef _EASYUINO_GSM_SERVICE_SECURE_h 28 #define _EASYUINO_GSM_SERVICE_SECURE_h 30 #include "Utilities.h" 31 #include "GSMService.h" 35 #define MAX_NUMBER_OF_ALLOWED_NUMBERS 3 48 unsigned long _allowedNumbers[MAX_NUMBER_OF_ALLOWED_NUMBERS];
57 GSMServiceSecure(IN uint8_t txPin, IN uint8_t rxPin, IN uint8_t powerPin, IN Stream &outputStream);
69 #pragma region Controller Numbers Management 82 GSMRequestStatus
isAllowed(IN
unsigned long phoneNumber, OUT
bool& allowed);
97 #pragma region SMS Management GSMRequestStatus availableSMS(OUT SMS &message, OUT bool &smsRead)
Check if there is a new received SMS.
Represents a SMS object used to send and receive it from the GSMService API.
Definition: SMS.h:38
GSMRequestStatus removeAllowedNumber(IN unsigned long phoneNumberToRemove)
Remove the given number from the allowed numbers list (If exists there)
GSMRequestStatus clearAllowedNumbers()
Clear the list for allowed phone numbers ENABLING any number to Call and send SMS to the service and ...
GSMServiceSecure(IN uint8_t txPin, IN uint8_t rxPin, IN uint8_t powerPin, IN Stream &outputStream)
Constructor.
GSMRequestStatus isAllowed(IN unsigned long phoneNumber, OUT bool &allowed)
Verify if the phone number is in the list of allowed numbers.
GSMService API allows to interact with GSM boards in order to perform calls, sms management etc...
Definition: GSMService.h:74
GSMServiceSecure extends the GSMService API allowing user to add phone numbers to accept calls and SM...
Definition: GSMServiceSecure.h:44
~GSMServiceSecure()
Destructor.
GSMRequestStatus addAllowedNumber(IN unsigned long phoneNumberToAdd)
Add the phone number to the allowed numbers IF it doesn't exist yet.