-
Notifications
You must be signed in to change notification settings - Fork 179
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
Problems with matter when running parallel to webpage hosting - mdns hostname (CON-1055) #847
Comments
Hi, the logs show a LwIP error ERR_USE(-8). It means that the mDNS port(5353) of minimal mDNS was used by another pcb. Could you check whether you are using the mdns component https://github.com/espressif/esp-protocols/tree/master/components/mdns? If yes and you are not going to remove it, please disable minimal mDNS and use platform mDNS instead.
|
Perfect thank you. Yes i was using the mdns component for the webpage hosting. Turning off the minimal dns actually got rid of the issue. I'm assuming by platform mdns you are referring to the mentioned component? And how did you connect the error code to mdns? i wasnt able to find a list of the error codes. |
Yes, the platform mdns is using the mdns component I mentioned.
The logs say
Maybe you can try to resolve the operational node service and see whether the service is advertised by your device? Looks like there are some issues on the order of mdns component APIs calling. |
Turns out the device was actually visible. Sry my mistake. Thank you for the explanation. |
So some testing showed that the webserver only stops responding if i don't message it for more than a minute. If i contiously send messages with less time than 1 min between them it will keep responding. Edit: fixed by keeping the tcp connection alive through continously sending update messages. |
Unfortunately not closed yet. While keeping the connection alive with pings works, once i close the web tab and open a new to connect to the webserver it is unresponsive again. It must have something to do with sessions being closed and unable to be reopened again but unfortunately i cant seem to find out exactly what. |
Turns out this is again, as assumed, an mdns issue. Once matter is started the previously defined mdns based hostname is lost and cant be resolved but the webserver is still reachable via its ip address. Is there a way to keep the mdns hostname while using matter or is it impossible as matter needs to redeclare the mdns hostname to something different? |
So i found out that there is no way to keep the hostname. |
Describe the bug
esp fails to initialize and use advertiser
Environment
Hi, i have code that hosts a webpage on a network in STA mode (esp is client in network and is hosting a webpage). On this webpage there is a button that if clicked turns matter on and makes the device discoverable and and controllable through matter while keeping the input possibility from the hosted webpage. Now at this point there are two tasks running. One with the webpage stuff with idlestatus priority and another one that starts the matter part that has priority idle + 1.
When i start matter, i get the below added logs. With the chip tool i tried to connect to the esp with onnetwork pairing but it seems the device is not even found (nodeid and passcode are guaranteed correct). When using amazon alexa to discover the device, the device is found but Alexa tells me to enter wifi creds in a loop while never fully connecting. (2nd logs).
The code to start matter i used is
err = esp_matter::start(app_event_cb);
Maybe someone here has an idea what exactly is going wrong or what i can change. The matter code is 99% based on the light example from esp-matter.
1.pdf
2.pdf
The text was updated successfully, but these errors were encountered: