MySensors Library & Examples  2.3.2-36-g2e00bf6
Public Member Functions | List of all members
TinyGsmSim808 Class Reference

Detailed Description

file TinyGsmClientSIM808.h author Volodymyr Shymanskyy license LGPL-3.0 copyright Copyright (c) 2016 Volodymyr Shymanskyy date Nov 2016

Definition at line 14 of file TinyGsmClientSIM808.h.

#include <TinyGsmClientSIM808.h>

+ Inheritance diagram for TinyGsmSim808:
+ Collaboration diagram for TinyGsmSim808:

Public Member Functions

 TinyGsmSim808 (Stream &stream)
 
bool enableGPS ()
 
bool disableGPS ()
 
String getGPSraw ()
 
bool getGPS (float *lat, float *lon, float *speed=0, int *alt=0, int *vsat=0, int *usat=0)
 
bool getGPSTime (int *year, int *month, int *day, int *hour, int *minute, int *second)
 
- Public Member Functions inherited from TinyGsmSim800
 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)
 

Additional Inherited Members

- Public Attributes inherited from TinyGsmSim800
Stream & stream
 
- Protected Member Functions inherited from TinyGsmSim800
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 inherited from TinyGsmSim800
GsmClientsockets [TINY_GSM_MUX_COUNT]
 

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