diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c44db4..4db8827 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,5 @@ cmake_minimum_required(VERSION 3.19) -# Audio Sending is implemented, but not performant enough yet -add_compile_definitions(SEND_AUDIO=0) - if(NOT IDF_TARGET STREQUAL linux) if(NOT DEFINED ENV{WIFI_SSID} OR NOT DEFINED ENV{WIFI_PASSWORD}) message(FATAL_ERROR "Env variables WIFI_SSID and WIFI_PASSWORD must be set") diff --git a/README.md b/README.md index a5fb1b3..e0faf87 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,6 @@ You can get a ESP32S3 for much less money on eBay/AliExpress. ## Installation -`protoc` must be in your path with `protobufc` installed. - Call `set-target` with the platform you are targetting. Today only `linux` and `esp32s3` are supported. * `idf.py set-target esp32s3` diff --git a/components/peer/CMakeLists.txt b/components/peer/CMakeLists.txt index b2613b3..d965443 100644 --- a/components/peer/CMakeLists.txt +++ b/components/peer/CMakeLists.txt @@ -7,18 +7,13 @@ idf_component_register( REQUIRES mbedtls srtp json esp_netif ) -# Disable building of usrsctp -file(READ ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/libpeer/src/config.h INPUT_CONTENT) -string(REPLACE "#define HAVE_USRSCTP" "" MODIFIED_CONTENT ${INPUT_CONTENT}) -file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/libpeer/src/config.h ${MODIFIED_CONTENT}) - # Disable KeepAlives file(READ ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/libpeer/src/config.h INPUT_CONTENT) string(REPLACE "#define KEEPALIVE_CONNCHECK 10000" "#define KEEPALIVE_CONNCHECK 0" MODIFIED_CONTENT ${INPUT_CONTENT}) file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/libpeer/src/config.h ${MODIFIED_CONTENT}) - if(NOT IDF_TARGET STREQUAL linux) - add_definitions("-DESP32") + add_definitions("-DESP32 -DCONFIG_USE_LWIP=1 -DCONFIG_AUDIO_BUFFER_SIZE=8096 -DCONFIG_DATA_BUFFER_SIZE=102400 -D__BYTE_ORDER=__LITTLE_ENDIAN") endif() -add_definitions("-DHTTP_DO_NOT_USE_CUSTOM_CONFIG -DMQTT_DO_NOT_USE_CUSTOM_CONFIG -DDISABLE_PEER_SIGNALING=true") + +add_definitions("-DHTTP_DO_NOT_USE_CUSTOM_CONFIG -DMQTT_DO_NOT_USE_CUSTOM_CONFIG -DCONFIG_USE_USRSCTP=0 -DDISABLE_PEER_SIGNALING=0") diff --git a/deps/libpeer b/deps/libpeer index 988ca19..6261915 160000 --- a/deps/libpeer +++ b/deps/libpeer @@ -1 +1 @@ -Subproject commit 988ca19368ff0a97670a74d9b390aaa1d63d9ea0 +Subproject commit 626191519269fb17e51d99c90436470d32458846