forked from itead/ITEADLIB_Arduino_SIMCom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SIM900.h
42 lines (37 loc) · 1.19 KB
/
SIM900.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef SIMCOM900_H
#define SIMCOM900_H
#include <SoftwareSerial.h>
#include "HWSerial.h"
#include "GSM.h"
class SIMCOM900 : public virtual GSM {
private:
int configandwait(char* pin);
int setPIN(char *pin);
int changeNSIPmode(char);
public:
SIMCOM900();
~SIMCOM900();
int getCCI(char* cci);
int getIMEI(char* imei);
int sendSMS(const char* to, const char* msg);
boolean readSMS(char* msg, int msglength, char* number, int nlength);
boolean readCall(char* number, int nlength);
boolean call(char* number, unsigned int milliseconds);
char forceON();
virtual int read(char* result, int resultlength);
virtual uint8_t read();
virtual int available();
int readCellData(int &mcc, int &mnc, long &lac, long &cellid);
void SimpleRead();
void WhileSimpleRead();
void SimpleWrite(char *comm);
void SimpleWrite(char const *comm);
void SimpleWrite(int comm);
void SimpleWrite(const __FlashStringHelper *pgmstr);
void SimpleWriteln(char *comm);
void SimpleWriteln(char const *comm);
void SimpleWriteln(const __FlashStringHelper *pgmstr);
void SimpleWriteln(int comm);
};
extern SIMCOM900 gsm;
#endif