Open
Description
Description:
The system occasionally fails to process rapid consecutive requests from the UI, particularly evident when rapidly clicking the pouring button or sending update and command requests almost simultaneously. This issue becomes critical if the 'stop' command request gets blocked, leading to uncontrolled operation.
Potential Solutions:
- Implement a queue system for incoming requests to ensure sequential processing.
- Modify connection handling to allow processing of multiple requests simultaneously.
- Explore using lower-level parts of the networking library for better concurrent client management.
As a temporary fix, ensure the UI repeatedly sends the 'stop' command until the server acknowledges.Implemented in this PR and fix this issue on client side.
Code Location:
The request processing code can be found in the RemoteControl.cpp
file, specifically within the process()
method.
Relevant Links:
- Discussion on handling multiple TCP clients on Arduino: Arduino Forum
- Challenges with multiple client connections on Arduino WiFi shield: Arduino Forum
Metadata
Metadata
Assignees
Labels
No labels
Activity