-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGSM.h
More file actions
48 lines (28 loc) · 887 Bytes
/
GSM.h
File metadata and controls
48 lines (28 loc) · 887 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
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef GSM_H
#define GSM_H
#include <Arduino.h>
#define _SS_MAX_RX_BUFF 256
#include "SoftwareSerial.h"
extern SoftwareSerial mySerial;
extern String cmd ;
extern String previousNumber;
extern int SMSduration;
extern int previousTime ;
extern float clientPower ;
extern String Token;
float powerCalculation(int amountPaid);
String generatedToken(int seed);
//stores the last 10 tokens that the system has generated
extern String TokensGenerated[20];
extern String TokenMessage;
const int CHUNK_SIZE = 200; // Adjust the chunk size based on your needs
//Tracker of the latest token
extern int tokenCounter ;
extern int costOfPower ;
// this is the amount paid by the cl
extern char buffer[CHUNK_SIZE + 1];
void updateSerial();
void sendSMS(String Message,String number);
void receiveSMS();
void printResponse();
#endif