sepfy/libpeer

esp32 sample won't connect to the browser

anpin opened this issue · 6 comments

Hello, I'm evaluating this library for a project. When I run the esp32 sample it wouldn't connect to the frontend. It actually connected the first time, but any further attempts failed.

image

My esp32 and laptop are on the same network, both are right next to a router.

Any thoughts where I should poke?

hi, i guess you can try to refresh the web page? because web page will send request to device when initialize. you need wait device is connected to server, then open the browser

I tried to restart the browser and also different browsers and devices. Once I saw STUN log message after the line with the link, but that’s it.

I also try to change device / client id to a random MAC address value.

Could this be limitation of public ally accessible services used by the sample?

looks the signaling server is not working for you. Are you able to change the MQTT broker for testing?
https://github.com/sepfy/libpeer/blob/main/src/peer_signaling.h#L25

Hello, i checked your log again and i found your peer signaling task is not running (also camera task). you can try to reduce stack size.

hi @sepfy, thanks for your suggestion, I've tried the updated example from b9ad642 and signaling now works fine.