#include <Sim808.h>
Public Member Functions | |
MyGsmSim808 (Stream &stream) | |
bool | getGps (MyGps &gps) |
bool | getGsmGps (MyGps &gps) |
bool | getSMS (SmsData &sms) |
bool | deleteSMS (long index) |
Extension class of the TinyGsmSim808 base class. Implements the special gps call and some sms functions.
MyGsmSim808::MyGsmSim808 | ( | Stream & | stream | ) |
bool MyGsmSim808::deleteSMS | ( | long | index | ) |
Delete a specific sms from the sim card.
Definition at line 164 of file Sim808.h.
Referenced by MyGsmGps::deleteSMS().
bool MyGsmSim808::getGps | ( | MyGps & | gps | ) |
Read and parse a gps information from the sim808 modul in the own MyGps data class
Definition at line 67 of file Sim808.h.
References MyGps::clear(), MyGps::fixStatus, MyGps::setAltitude(), MyGps::setCourse(), MyGps::setDateTime(), MyGps::setFixMode(), MyGps::setFixStatus(), MyGps::setHdop(), MyGps::setLatitude(), MyGps::setLongitude(), MyGps::setPdop(), MyGps::setRunStatus(), MyGps::setSatellitesInView(), MyGps::setSatellitesUsed(), MyGps::setSpeed(), and MyGps::setVdop().
Referenced by MyGsmGps::getGps().
bool MyGsmSim808::getGsmGps | ( | MyGps & | gps | ) |
Read and parse a gsm-gps information from the sim808 modul in the own MyGps data class Sample: AT+CIPGSMLOC=1,1 +CIPGSMLOC: 0,23.7798,61.496052,2019/01/26,08:21:47
Definition at line 102 of file Sim808.h.
References MyGps::clear(), MyGps::fixStatus, MyGps::setDateTime(), MyGps::setLatitude(), and MyGps::setLongitude().
Referenced by MyGsmGps::getGpsFromGsm().
bool MyGsmSim808::getSMS | ( | SmsData & | sms | ) |
Read one SMS from the sim card into the own SmsData class.
Definition at line 136 of file Sim808.h.
References SmsData::dateTime, SmsData::index, SmsData::message, SmsData::phoneNumber, SmsData::referenceNumber, SmsData::status, and Trim().
Referenced by MyGsmGps::getSMS().