Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 Arduino Library #171

Open
kakopappa opened this issue Dec 20, 2024 · 3 comments
Open

ESP32 Arduino Library #171

kakopappa opened this issue Dec 20, 2024 · 3 comments

Comments

@kakopappa
Copy link

Hey @sepfy

Great work !

Any plans for an Arduino ESP32 library for small folks like me?

Thanks

@HasiEraPro
Copy link

Hello @sepfy , can you release a arduino esp32 library to stream video p2p

@sepfy
Copy link
Owner

sepfy commented Dec 30, 2024

Sorry, No such plans in the near future

@kakopappa
Copy link
Author

kakopappa commented Jan 2, 2025

Hi @sepfy

I am trying to put together an Arduino Library for ESP32 during the holiday break. This is what I have done so far

  1. Make libpeer.so based on code in master
  2. Make an Arduino library based on libpeer.so and header files. (https://github.com/kakopappa/esp32-arduino-webrtc)
  3. Flash the sample sketch, it connects to the MQTT server and wait
  4. When I initiate a connect from https://sepfy.github.io/libpeer/, I can see the

oniceconnectionstatechange gets called with state = 2 and then state = 3 and crashes. When I decode the error it looks like this

Decoding stack results
0x40119b86: mbedtls_ssl_handshake_step at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library\ssl_tls.c:4563
0x40119bcc: mbedtls_ssl_handshake at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library\ssl_tls.c:4610
0x4016ec9d: dtls_srtp_do_handshake at /Users/aruna/Documents/projects/libpeer/src\dtls_srtp.c:369
0x4016ecea: dtls_srtp_handshake_server at /Users/aruna/Documents/projects/libpeer/src\dtls_srtp.c:386
0x4016f005: dtls_srtp_handshake at /Users/aruna/Documents/projects/libpeer/src\dtls_srtp.c:424
0x40164ebf: peer_connection_loop at /Users/aruna/Documents/projects/libpeer/src\peer_connection.c:384
0x400d2902: peer_connection_task(void*) at C:\Users\user\Documents\Arduino\libraries\esp32-arduino-webrtc\examples\libpeer-test\libpeer-test.ino:53
0x4008e3d2: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa\port.c:139

Issue seems to be coming from mbedtls_ssl_handshake_step. Have you experience this before or do you have any suggestions to how to fix this?

I am using Arduino Release v3.1.0 based on ESP-IDF v5.3.2

@kakopappa kakopappa reopened this Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants