File tree 4 files changed +65
-5
lines changed
4 files changed +65
-5
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "build" : {
3
+ "arduino" :{
4
+ "ldscript" : " esp32s3_out.ld" ,
5
+ "partitions" : " large_littlefs_32MB.csv" ,
6
+ "memory_type" : " opi_opi"
7
+ },
8
+ "core" : " esp32" ,
9
+ "extra_flags" : [
10
+ " -DARDUINO_ESP32S3_DEV" ,
11
+ " -DARDUINO_USB_MODE=0" ,
12
+ " -DARDUINO_RUNNING_CORE=1" ,
13
+ " -DARDUINO_EVENT_RUNNING_CORE=1" ,
14
+ " -DBOARD_HAS_PSRAM"
15
+ ],
16
+ "f_cpu" : " 240000000L" ,
17
+ "f_flash" : " 80000000L" ,
18
+ "flash_mode" : " dio" ,
19
+ "boot" : " opi" ,
20
+ "hwids" : [
21
+ [
22
+ " 0X303A" ,
23
+ " 0x1001"
24
+ ]
25
+ ],
26
+ "mcu" : " esp32s3" ,
27
+ "variant" : " esp32s3"
28
+ },
29
+ "connectivity" : [
30
+ " wifi"
31
+ ],
32
+ "debug" : {
33
+ "default_tool" : " esp-builtin" ,
34
+ "onboard_tools" : [
35
+ " esp-builtin"
36
+ ],
37
+ "openocd_target" : " esp32s3.cfg"
38
+ },
39
+ "frameworks" : [
40
+ " arduino" ,
41
+ " espidf"
42
+ ],
43
+ "name" : " Espressif ESP32-S3-DevKitC-2-opi" ,
44
+ "upload" : {
45
+ "flash_size" : " 32MB" ,
46
+ "maximum_ram_size" : 327680 ,
47
+ "maximum_size" : 33554432 ,
48
+ "require_upload_port" : true ,
49
+ "speed" : 460800
50
+ },
51
+ "url" : " https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html" ,
52
+ "vendor" : " Espressif"
53
+ }
Original file line number Diff line number Diff line change 17
17
#include < sstream>
18
18
19
19
// TODO: Configure your WiFi here
20
+ #ifndef WIFI_SSID
20
21
#define WIFI_SSID " <your ssid goes here>"
21
22
#define WIFI_PSK " <your pre-shared key goes here>"
23
+ #endif
22
24
23
25
// Max clients to be connected to the chat
24
26
#define MAX_CLIENTS 4
Original file line number Diff line number Diff line change 1
1
[platformio]
2
- src_dir = examples/Websocket-Chat
2
+
3
3
4
4
[env]
5
5
framework = arduino
@@ -8,16 +8,21 @@ upload_speed = 460800
8
8
build_type = debug
9
9
monitor_filters = esp32_exception_decoder
10
10
upload_port = /dev/cu.usbmodem11201
11
+ build_src_filter =
12
+ +<*.cpp>
13
+ +<../examples/Websocket-Chat/*.cpp>
11
14
12
15
[credentials]
13
16
wifi_ssids =
14
17
-DWIFI_SSID =\" ${sysenv.WIFI_SSID}\"
15
- -DWIFI_PASSWORD =\" ${sysenv.WIFI_PASSWORD}\"
18
+ -DWIFI_PSK =\" ${sysenv.WIFI_PASSWORD}\"
16
19
17
20
[env:custom-server]
18
21
19
22
20
- board = m5stack-cores3
23
+ ; board = m5stack-cores3
24
+ board = esp32-s3-devkitc-1-32MB-8MB
25
+
21
26
upload_protocol = esptool
22
27
debug_tool = esp-builtin
23
28
debug_init_break = tbreak app_main
@@ -26,7 +31,6 @@ build_flags =
26
31
-Isrc
27
32
-ggdb3 -O0
28
33
-DCORE_DEBUG_LEVEL =5
29
- -DM5UNIFIED
30
34
${credentials.wifi_ssids}
31
35
32
36
lib_deps =
Original file line number Diff line number Diff line change 1
1
#include " HTTPConnection.hpp"
2
-
2
+ #include " mbedtls/base64.h"
3
+ #include " mbedtls/sha1.h"
3
4
namespace httpsserver {
4
5
5
6
HTTPConnection::HTTPConnection (ResourceResolver * resResolver):
You can’t perform that action at this time.
0 commit comments