-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lumix.h
44 lines (30 loc) · 839 Bytes
/
Lumix.h
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
#define CAMERA_DISABLED 0
#define CAMERA_CONNECTING 1
#define CAMERA_CONNECTED 2
#define LUMIX_KEEPALIVE_INTERVAL 2000
#include <Arduino.h>
#include <HTTPClient.h>
class Lumix {
private:
String ip;
int connectionStatus;
String deviceName;
unsigned long lastKeepAlive;
bool infoUpdatedFlag;
public:
Lumix(String ip);
void updateDeviceName(String deviceName);
void updateConnectionStatus(int connectionStatus);
void updateIp(String ip);
bool infoUpdated();
bool isConnected();
bool isConnecting();
bool isDisabled();
void update();
int getConnectionStatus();
String getFriendlyName();
String getBaseUrl();
String getCaptureUrl();
void sendCommand(String paramString);
String getSplitStringIndex(String data, char separator, int index);
};