You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TCP server doesn't correctly detect when clients disconnect, and the serial interface doesn't track the connection state. Connection losses can lead to unhandled expectations in the send/receive loops, and resources aren't always properly cleaned up after disconnection.
Requirements
The interfaces MUST clean up resources if there is an unexpected disconnection for both Serial and TCP ("Simulated") interfaces.
The DroneComms module MUST provide a callback parameter for connection broken errors.
The DroneCOmms module MAY attempt to re-establish the connection.
Tasks
Add the is_connected flag to both interfaces and update on connect and disconnect.
Escapsolate functions with try-catch, and if there's an error, change the flag to false clean up connect resources and call an error function specified by the user.
Change the receiver to check the flag before sending a packet.
Deliverables
Pull request to dev branch.
The text was updated successfully, but these errors were encountered:
Objective
The TCP server doesn't correctly detect when clients disconnect, and the serial interface doesn't track the connection state. Connection losses can lead to unhandled expectations in the send/receive loops, and resources aren't always properly cleaned up after disconnection.
Requirements
Tasks
is_connected
flag to both interfaces and update on connect and disconnect.Deliverables
dev
branch.The text was updated successfully, but these errors were encountered: