-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathPushover.h
More file actions
40 lines (38 loc) · 780 Bytes
/
Pushover.h
File metadata and controls
40 lines (38 loc) · 780 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
#include <WiFiClientSecure.h>
enum SafeMode {
SAFE = 0,
UNSAFE = 1
};
class Pushover {
private:
String _token;
String _user;
bool _unsafe;
String _message;
String _device;
String _title;
String _url;
String _url_title;
int8_t _priority = 0;
uint16_t _retry;
uint16_t _expire;
uint32_t _timestamp = 0;
boolean _html;
uint16_t _timeout = 5000;
String _sound;
public:
Pushover(String,String,bool);
void setMessage(String);
void setDevice(String);
void setTitle(String);
void setUrl(String);
void setUrlTitle(String);
void setPriority(int8_t);
void setRetry(uint16_t);
void setExpire(uint16_t);
void setTimestamp(uint32_t);
void setSound(String);
void setHTML(boolean);
void setTimeout(uint16_t);
boolean send(void);
};