-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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] Subscription Persistence and Resumption don't work on ESP32 #25013
Comments
@wqx6 Please attach (not paste) logs? |
Basic question, is the app built with the persistent subscription flag on? |
Attached the logs. |
the persistent subscription flag should be on after #24759 |
So for the server log, I do see:
which indicates that subscription resumption is generally present. |
This is fallout from #24725 During server startup, |
@Damian-Nordic So... When I guess we could change |
And generally speaking, during startup, there will be various events as we bring up various different interfaces (ipv4, ipv6, etc). Do we have some event for "ok, we think our network is now stable"? |
So, I added the following code:
and then:
Thus
I think currently different examples use different events to e.g. start the OTA requestor. I envision the |
So I checked on linux with minimal mDNS and that works. That is, |
@Damian-Nordic |
I see. Ok, let me fix that. |
See #25050 (review) -- that PR helps, but not enough on its own. But it makes it so things are no more broken than they were before #24725 at least... Still not working, though, @jtung-apple. Perhaps Server should be listening for some set (which?) of connectivity events and trying to restart subscriptions if they have not already been restarted when those happen? |
Hmm. Maybe |
@Damian-Nordic Thanks a lot. The PR helps. In my environment, the subscriptions resumption works on ESP32. So in @bzbarsky-apple 's comment, the DnssdInitialized event might be posted even if there is no IPv6 address on WIFI_STA netif? Can we post the event until there is an IPv6 interface used by minimal mdns server? just add a addressType check in |
…e IPv6 interface. This fixes two things: 1. We now don't consider advertising properly initialized until we are advertising on at least one ipv6 interface. 2. Actually check which sorts of addresses interfaces have, instead of just assuming that all interfaces have both IPv4 and IPv6 addresses. Fixes project-chip#25013
…e IPv6 interface. (#25173) This fixes two things: 1. We now don't consider advertising properly initialized until we are advertising on at least one ipv6 interface. 2. Actually check which sorts of addresses interfaces have, instead of just assuming that all interfaces have both IPv4 and IPv6 addresses. Fixes #25013
…e IPv6 interface. (#25173) This fixes two things: 1. We now don't consider advertising properly initialized until we are advertising on at least one ipv6 interface. 2. Actually check which sorts of addresses interfaces have, instead of just assuming that all interfaces have both IPv4 and IPv6 addresses. Fixes project-chip/connectedhomeip#25013
…e IPv6 interface. (#25173) This fixes two things: 1. We now don't consider advertising properly initialized until we are advertising on at least one ipv6 interface. 2. Actually check which sorts of addresses interfaces have, instead of just assuming that all interfaces have both IPv4 and IPv6 addresses. Fixes project-chip/connectedhomeip#25013
…e IPv6 interface. (project-chip#25173) This fixes two things: 1. We now don't consider advertising properly initialized until we are advertising on at least one ipv6 interface. 2. Actually check which sorts of addresses interfaces have, instead of just assuming that all interfaces have both IPv4 and IPv6 addresses. Fixes project-chip#25013
Reproduction steps
Subscription Persistence and Resumption don't work on ESP32.
My test steps:
chip-tool.log
esp32.log
Bug prevalence
Whenever I do this
GitHub hash of the SDK that was being used
bbfd5d6
Platform
esp32
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: