Skip to content

Allow to Connect without Resetting #95

@baffo32

Description

@baffo32

It would be nice to connect to the device without having to reset it, for command-line utilities that just perform one function, and to maintain a long-term SD log without interruption.

I began this in #82, but it turns out a lot of subtle issues with the library obstruct testing. I will likely withdraw #82 and submit a new pull request that is rebased on a more recent commit, while adding the dependent issues to the issue tracker.

  • Address all dependent issues (at least Socket not closed if connect() called twice #93 and State not cleaned up on socket close #92)
  • Optionally separate the simulator from the connect/disconnect cycle, so it has its own lifetime
  • Provide an option flag determining whether the connection owns or manages the lifetime of the board, defaulting to false. If set to true, the board will be reset when connected, and streaming will be halted when disconnected.
  • Test for all combinations of this flag with the connect / disconnect functions, and any other relevant combinations introduced.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions