BayEOS-Arduino
1.8.0_0.0.4
libraries
BayTCPSim900
BayTCPSim900.h
1
#ifndef BayTCPSIM900_h
2
#define BayTCPSIM900_h
3
4
#define SIM900_DEBUG 0
5
6
7
#include <HardwareSerial.h>
8
#include <SoftwareSerial.h>
9
#include <BayTCP.h>
10
#include <RTClib.h>
11
12
class
RTC_SIM900
:
public
RTC
{
13
public
:
14
void
begin() {}
15
void
adjust(
const
DateTime
& dt);
16
DateTime
now();
17
18
protected
:
19
unsigned
long
offset;
20
unsigned
long
last_millis;
21
};
22
23
24
class
BayGPRSInterface
:
public
BayTCPInterface
{
25
public
:
30
uint8_t sendSMS(
const
String &phone,
const
String &sms);
31
44
uint8_t connect(
void
);
45
49
void
disconnect(
void
);
53
uint8_t getRSSI(
void
);
54
59
uint8_t setClock(
const
char
* time);
60
64
DateTime
now(
void
);
65
78
uint8_t begin(
long
baud,uint8_t unlock_only=0);
79
80
/*
81
* Change the baud rate of the Modem
82
* 0 == OK
83
* 1 == Failed
84
*/
85
uint8_t changeIPR(
long
baud);
86
90
uint8_t isRegistered(
void
);
91
95
uint8_t isAttached(
void
);
96
102
108
122
132
137
150
169
BayGPRSInterface
Definition:
BayTCPSim900.h:24
RTC_SIM900
Definition:
BayTCPSim900.h:12
DateTime
Definition:
BayEOSBuffer.h:28
RTC
Definition:
BayEOSBuffer.h:51
BayTCPInterface
Definition:
BayTCP.h:55
Generated on Mon Feb 26 2018 13:02:28 for BayEOS-Arduino by
1.8.13