forked from arduinocamp/gsm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGSM.cpp
More file actions
55 lines (44 loc) · 1.68 KB
/
GSM.cpp
File metadata and controls
55 lines (44 loc) · 1.68 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Copyright (C) 2011 Madefree Electronics <madefree.info@gmail.com>
* Daniele Sdei, Marco Antonini
* http://www.madefree.eu
*
* This file is part of BeeGSM.
*
* BeeGSM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* BeeGSM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with BeeGSM. If not, see <http://www.gnu.org/licenses/>.
*/
#include "GSM.h"
#include "WideTextFinder.h"
#define _GSM_TXPIN_ 7
#define _GSM_RXPIN_ 8
GSM::GSM():_cell(_GSM_TXPIN_,_GSM_RXPIN_),_tf(_cell, 10),_status(IDLE)
{
};
int GSM::begin(char* pin)
{
_cell.begin(9600);
setStatus(IDLE);
return start(pin);
}
int GSM::restart(char* pin){ return 1;}
int GSM::start(char* pin){return 0;};
int GSM::shutdown(){return 0;};
int GSM::sendSMS(const char* to, const char* msg){return 0;};
int GSM::readCellData(int &mcc, int &mnc, long &lac, long &cellid){return 0;};
boolean GSM::readSMS(char* msg, int msglength, char* number, int nlength){return false;};
boolean GSM::readCall(char* number, int nlength){return false;};
boolean GSM::call(char* number, unsigned int milliseconds){return false;};
int GSM::setPIN(char *pin){return 0;};
int GSM::getCCI(char* cci){return 0;};
int GSM::getIMEI(char* imei){return 0;};