kindring 67da75dea5 初次提交 10 mēneši atpakaļ
..
netinet 67da75dea5 初次提交 10 mēneši atpakaļ
.gitignore 67da75dea5 初次提交 10 mēneši atpakaļ
CMakeLists.txt 67da75dea5 初次提交 10 mēneši atpakaļ
FreeRTOSConfig.h 67da75dea5 初次提交 10 mēneši atpakaļ
FreeRTOS_Kernel_import.cmake 67da75dea5 初次提交 10 mēneši atpakaļ
README.md 67da75dea5 初次提交 10 mēneši atpakaļ
config.h 67da75dea5 初次提交 10 mēneši atpakaļ
lwipopts.h 67da75dea5 初次提交 10 mēneši atpakaļ
main.c 67da75dea5 初次提交 10 mēneši atpakaļ
mbedtls_config.h 67da75dea5 初次提交 10 mēneši atpakaļ

README.md

RP2040 PICO W

Establish a DataChannel connection between PICO and the web

Supported Devices

Device Image
PICO W

Setup Instructions

Download Required Libraries

$ git clone --recursive https://github.com/sepfy/libpeer
$ git clone --recurisve https://github.com/raspberrypi/pico-sdk
$ git clone --recursive https://github.com/FreeRTOS/FreeRTOS-Kernel

Apply a patch

Modify libpeer/third_party/libsrtp/include/srtp.h

@@ -614,7 +614,7 @@ srtp_err_status_t srtp_add_stream(srtp_t session, const srtp_policy_t *policy);
  *    - [other]           otherwise.
  *
  */
-srtp_err_status_t srtp_remove_stream(srtp_t session, unsigned int ssrc);
+srtp_err_status_t srtp_remove_stream(srtp_t session, uint32_t ssrc);

 /**
  * @brief srtp_update() updates all streams in the session.

Configure Your Build

$ export PICO_SDK_PATH=<your PICO SDK path>/pico-sdk
$ export FREERTOS_KERNEL_PATH=<your FreeRTOS kernel path>/FreeRTOS-Kernel
$ export WIFI_SSID=<your WIFI SSID>
$ export WIFI_PASSWORD=<your WIFI password>

Build the Project

$ cd libpeer/examples/pico
$ mkdir build
$ cd build
$ cmake ..

Flash and Test

$ sudo picotool load -f pico_peer.uf2