sepfy / libpeer

WebRTC Library for IoT/Embedded Device using C
MIT License
804 stars 108 forks source link

Realtime messaging data channel example #41

Closed rjjrbatarao closed 7 months ago

rjjrbatarao commented 9 months ago

I have successfully sent json data from the esp32 to the webrtc website but i dont know how we can send data from website to the esp32. is there any receive handler on the esp32 libpeer side?

sepfy commented 9 months ago

I pushed the code that have some event callback for ESP32. You can try it https://github.com/sepfy/libpeer/blob/main/examples/esp32/main/app_main.c#L57

rjjrbatarao commented 9 months ago

woah thats fast thank you, I'll test it