-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathGPRS.h
More file actions
35 lines (28 loc) · 661 Bytes
/
GPRS.h
File metadata and controls
35 lines (28 loc) · 661 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
#ifndef GPRS_h
#define GPRS_h
#include <Arduino.h>
#include "DTE.h"
class GPRS {
private:
DTE *dte;
bool attached = false;
public:
GPRS(DTE &dte);
/**
* Command AT+CGATT?
* @return true: If command success, false: Otherwise or timeout
*/
bool atAttachGPRSService(void);
/**
* Command AT+CGATT=
* @param attach true: Force attach, false: detach GPRS Service
* @return true: If command success, false: Otherwise or timeout
*/
bool atAttachGPRSService(bool attach);
/**
* Is GPRS Service attached/available
* @return true: If attached/available, false: Otherwise
*/
bool isAttached(void);
};
#endif