EasyManua.ls Logo

Freenove ESP32-S3 - Page 134

Default Icon
142 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Any concerns? support@freenove.com
Chapter 8 Camera Tcp Server
132
www.freenove.com
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
48
49
50
#include "camera_pins.h"
#define LED_BUILT_IN 2
const char *ssid_Router = "********";
const char *password_Router = "********";
const char *ssid_AP = "********";
const char *password_AP = "********";
WiFiServer server_Cmd(5000);
WiFiServer server_Camera(8000);
extern TaskHandle_t loopTaskHandle;
void setup() {
Serial.begin(115200);
Serial.setDebugOutput(false);
Serial.println();
pinMode(LED_BUILT_IN, OUTPUT);
cameraSetup();
WiFi.softAP(ssid_AP, password_AP);
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);
server_Camera.begin(8000);
server_Cmd.begin(5000);
/////////////////////////////////////////////////////
WiFi.begin(ssid_Router, password_Router);
Serial.print("Connecting ");
Serial.print(ssid_Router);
while (WiFi.isConnected() != true) {
delay(500);
Serial.print(".");
//WiFi.begin(ssid_Router, password_Router);
}
Serial.println("");
Serial.println("WiFi connected");
/////////////////////////////////////////////////////
Serial.print("Camera Ready! Use '");
Serial.print(WiFi.softAPIP());
Serial.print(" or ");
Serial.print(WiFi.localIP());
Serial.println("' to connect in Freenove app.");
disableCore0WDT();