-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtil.h
More file actions
33 lines (29 loc) · 787 Bytes
/
Copy pathUtil.h
File metadata and controls
33 lines (29 loc) · 787 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
#ifndef Util_h
#define Util_h
#include <Arduino.h>
#include "Constants.h"
#include "Modem.h"
#include <avr/wdt.h>
class Util {
public:
Util( Modem *m);
uint8_t getTypeRequest(void);
uint8_t handleIncomingSms(void);
bool assignAdmin(char *phone);
bool checkOnIncomingSms();
uint8_t getCoolThemperature();
uint8_t isSendMotionSMS();
// uint8_t setApiKey(char *apiKey);
// uint8_t setFieldsList( char *fieldsList);
private:
Modem *modem;
uint8_t writeToPhoneBook(uint8_t clientNumber, char *phone);
bool compareSenderWithAdmin(char *adminPhone);
uint8_t executeRequest(void);
void writeCharsArr(char *arr);
uint8_t setCoolThemperature();
uint8_t setIsMotion();
uint8_t startReboot();
void WDT_Reset();
};
#endif