MySensors Library & Examples  2.3.2
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
TinyGsmSim800 Class Reference

Detailed Description

Definition at line 43 of file TinyGsmClientSIM800.h.

+ Inheritance diagram for TinyGsmSim800:
+ Collaboration diagram for TinyGsmSim800:

Classes

class  GsmClient
 
class  GsmClientSecure
 

Public Member Functions

 TinyGsmSim800 (Stream &stream)
 
bool begin ()
 
bool init ()
 
void setBaud (unsigned long baud)
 
bool testAT (unsigned long timeout=10000L)
 
void maintain ()
 
bool factoryDefault ()
 
String getModemInfo ()
 
bool hasSSL ()
 
bool restart ()
 
bool poweroff ()
 
bool radioOff ()
 
bool sleepEnable (bool enable=true)
 
bool simUnlock (const char *pin)
 
String getSimCCID ()
 
String getIMEI ()
 
SimStatus getSimStatus (unsigned long timeout=10000L)
 
RegStatus getRegistrationStatus ()
 
String getOperator ()
 
int getSignalQuality ()
 
bool isNetworkConnected ()
 
bool waitForNetwork (unsigned long timeout=60000L)
 
bool gprsConnect (const char *apn, const char *user=NULL, const char *pwd=NULL)
 
bool gprsDisconnect ()
 
bool isGprsConnected ()
 
String getLocalIP ()
 
IPAddress localIP ()
 
bool setGsmBusy (bool busy=true)
 
bool callAnswer ()
 
bool callNumber (const String &number)
 
bool callHangup ()
 
bool dtmfSend (char cmd, int duration_ms=100)
 
String sendUSSD (const String &code)
 
bool sendSMS (const String &number, const String &text)
 
bool sendSMS_UTF16 (const String &number, const void *text, size_t len)
 
String getGsmLocation ()
 
uint16_t getBattVoltage ()
 
int getBattPercent ()
 
template<typename T >
void streamWrite (T last)
 
template<typename T , typename... Args>
void streamWrite (T head, Args... tail)
 
bool streamSkipUntil (char c)
 
template<typename... Args>
void sendAT (Args... cmd)
 
uint8_t waitResponse (uint32_t timeout, String &data, GsmConstStr r1=GFP(GSM_OK), GsmConstStr r2=GFP(GSM_ERROR), GsmConstStr r3=NULL, GsmConstStr r4=NULL, GsmConstStr r5=NULL)
 
uint8_t waitResponse (uint32_t timeout, GsmConstStr r1=GFP(GSM_OK), GsmConstStr r2=GFP(GSM_ERROR), GsmConstStr r3=NULL, GsmConstStr r4=NULL, GsmConstStr r5=NULL)
 
uint8_t waitResponse (GsmConstStr r1=GFP(GSM_OK), GsmConstStr r2=GFP(GSM_ERROR), GsmConstStr r3=NULL, GsmConstStr r4=NULL, GsmConstStr r5=NULL)
 

Public Attributes

Stream & stream
 

Protected Member Functions

bool modemConnect (const char *host, uint16_t port, uint8_t mux, bool ssl=false)
 
int modemSend (const void *buff, size_t len, uint8_t mux)
 
size_t modemRead (size_t size, uint8_t mux)
 
size_t modemGetAvailable (uint8_t mux)
 
bool modemGetConnected (uint8_t mux)
 

Protected Attributes

GsmClientsockets [TINY_GSM_MUX_COUNT]
 

The documentation for this class was generated from the following file: