Skip to content

Commit 87f96f7

Browse files
Update libpeer to latest commit
Added datachannel creation support
1 parent fd01e69 commit 87f96f7

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
cmake_minimum_required(VERSION 3.19)
22

3-
# Audio Sending is implemented, but not performant enough yet
4-
add_compile_definitions(SEND_AUDIO=0)
5-
63
if(NOT IDF_TARGET STREQUAL linux)
74
if(NOT DEFINED ENV{WIFI_SSID} OR NOT DEFINED ENV{WIFI_PASSWORD})
85
message(FATAL_ERROR "Env variables WIFI_SSID and WIFI_PASSWORD must be set")

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ You can get a ESP32S3 for much less money on eBay/AliExpress.
2121

2222
## Installation
2323

24-
`protoc` must be in your path with `protobufc` installed.
25-
2624
Call `set-target` with the platform you are targetting. Today only `linux` and `esp32s3` are supported.
2725
* `idf.py set-target esp32s3`
2826

components/peer/CMakeLists.txt

+3-8
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,13 @@ idf_component_register(
77
REQUIRES mbedtls srtp json esp_netif
88
)
99

10-
# Disable building of usrsctp
11-
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/libpeer/src/config.h INPUT_CONTENT)
12-
string(REPLACE "#define HAVE_USRSCTP" "" MODIFIED_CONTENT ${INPUT_CONTENT})
13-
file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/libpeer/src/config.h ${MODIFIED_CONTENT})
14-
1510
# Disable KeepAlives
1611
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/libpeer/src/config.h INPUT_CONTENT)
1712
string(REPLACE "#define KEEPALIVE_CONNCHECK 10000" "#define KEEPALIVE_CONNCHECK 0" MODIFIED_CONTENT ${INPUT_CONTENT})
1813
file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/libpeer/src/config.h ${MODIFIED_CONTENT})
1914

20-
2115
if(NOT IDF_TARGET STREQUAL linux)
22-
add_definitions("-DESP32")
16+
add_definitions("-DESP32 -DCONFIG_USE_LWIP=1 -DCONFIG_AUDIO_BUFFER_SIZE=8096 -DCONFIG_DATA_BUFFER_SIZE=102400 -D__BYTE_ORDER=__LITTLE_ENDIAN")
2317
endif()
24-
add_definitions("-DHTTP_DO_NOT_USE_CUSTOM_CONFIG -DMQTT_DO_NOT_USE_CUSTOM_CONFIG -DDISABLE_PEER_SIGNALING=true")
18+
19+
add_definitions("-DHTTP_DO_NOT_USE_CUSTOM_CONFIG -DMQTT_DO_NOT_USE_CUSTOM_CONFIG -DCONFIG_USE_USRSCTP=0 -DDISABLE_PEER_SIGNALING=0")

0 commit comments

Comments
 (0)