mirror of
https://github.com/jwetzell/LumixStick.git
synced 2026-08-13 02:53:41 +00:00
45 lines
839 B
C++
45 lines
839 B
C++
#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);
|
|
};
|