kindring 67da75dea5 初次提交 10 maanden geleden
..
netinet 67da75dea5 初次提交 10 maanden geleden
.gitignore 67da75dea5 初次提交 10 maanden geleden
CMakeLists.txt 67da75dea5 初次提交 10 maanden geleden
FreeRTOSConfig.h 67da75dea5 初次提交 10 maanden geleden
FreeRTOS_Kernel_import.cmake 67da75dea5 初次提交 10 maanden geleden
README.md 67da75dea5 初次提交 10 maanden geleden
config.h 67da75dea5 初次提交 10 maanden geleden
lwipopts.h 67da75dea5 初次提交 10 maanden geleden
main.c 67da75dea5 初次提交 10 maanden geleden
mbedtls_config.h 67da75dea5 初次提交 10 maanden geleden

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