-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVoiceHandler.h
More file actions
33 lines (28 loc) · 829 Bytes
/
Copy pathVoiceHandler.h
File metadata and controls
33 lines (28 loc) · 829 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 VoiceHandler_h
#define VoiceHandler_h
#include <Arduino.h>
#include "Constants.h"
#include "Modem.h"
class VoiceHandler{
public:
VoiceHandler(Modem *m);
void setSensorsData(uint8_t minThemp, int themp, uint8_t motions);
uint8_t handleIncoming(char *phone); // return SUCCESS if say answer and return ASSIGN_ADMIN if button pressed
private:
// var
Modem *modem;
int mode;
uint8_t coolThemperature = 0;
int themperature = 0;
uint8_t motionCounter = 0;
char call[30]; // incoming calls
char incomingPhone[14];
// func
uint8_t fillPhoneFromCall(char *str);
uint8_t makeAnswer(bool isAdmin);// for assign admin phone play only GOOD_SOUND
uint8_t sayThemperature();
uint8_t playFile(const char *fileName);
void delayForPlay();
// uint8_t
};
#endif