-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModem.h
More file actions
36 lines (29 loc) · 666 Bytes
/
Modem.h
File metadata and controls
36 lines (29 loc) · 666 Bytes
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
#ifndef Modem_h
#define Modem_h
/*
* Modem
*
* Library to wrap Fona phone / other boards
*
* Greg Cope <greg.cope@gmail.com>
*
*/
#include <Arduino.h>
// https://support.giffgaff.com/t5/Help-Support/Using-Giffgaff-2G-sim-in-Adafruit-FONA/td-p/18143791
#define APN_URL mobile.o2.co.uk
#define APN_USERNAME o2web
#define APN_PASSWORD password
#define DEBUG(input) {Serial.print(input); Serial.flush();}
#define DEBUGln(input) {Serial.println(input); Serial.flush();}
class Modem
{
public:
Modem(int enablepin);
boolean on(void);
void off(void);
boolean isOn(void);
private:
int _enablePin;
boolean _powerState;
};
#endif