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

If a response doesn't come immediately #12

Open
KDMcMullan opened this issue Jul 19, 2024 · 0 comments
Open

If a response doesn't come immediately #12

KDMcMullan opened this issue Jul 19, 2024 · 0 comments
Labels
unwanted feature Not quite a bug, but something folk complain about

Comments

@KDMcMullan
Copy link
Owner

When we make a query, the "server" (Python) program subscribes to the response topic which would contain the answer.
When the response topic is published, the answer is transmitted, and the response topic name is deleted from the list of topics from which a response is expected.
If the responding MQTT device is not connected, and a query is made, the response will not be transmitted. (There won't have BEEN a response.) When the device comes online again, and transmits a response (or is queried such that the response topic is published), then the response will be broadcast, even though the request might have been made some long time previous.

Suggest: if the response topic is not forthcoming within (nominally) 60 seconds, a message to this effect should be broadcast. The expected response topic should be deleted from the list of response topics.

@KDMcMullan KDMcMullan added the unwanted feature Not quite a bug, but something folk complain about label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unwanted feature Not quite a bug, but something folk complain about
Projects
None yet
Development

No branches or pull requests

1 participant