-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppCameraStream.h
More file actions
47 lines (33 loc) · 1005 Bytes
/
Copy pathAppCameraStream.h
File metadata and controls
47 lines (33 loc) · 1005 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
41
42
43
44
45
46
47
//
// Created by codexzier on 07.07.26.
//
#ifndef CODEXZIER_VERSATRON_APPCAMERASTREAM_H
#define CODEXZIER_VERSATRON_APPCAMERASTREAM_H
#include "BaseDrawable.h"
#include <SubCameraManager.h>
#include <WiFi.h>
#include "WlanData.h"
class AppCameraStream : public BaseDrawable {
WlanConnection wd;
SubCameraManager* _cameraManager = nullptr;
bool _wlanConnected = false;
WiFiServer _server;
int _port = 9000;
WiFiClient _client;
bool _wifiServerRun = false;
public:
void initExtend() override;
void drawUpdate() override;
void setButton1() override { }
void setButton2() override;
void setButton3() override { _canBeClosed = true; }
void setValue1(int16_t value) override {}
void setValue2(int16_t value) override {}
void reset() override {
_hasDraw = false;
}
void SetupCameraManager(SubCameraManager &cameraManager) {
_cameraManager = &cameraManager;
}
};
#endif //CODEXZIER_VERSATRON_APPCAMERASTREAM_H