Skip to content

Add TCP socket backend for request/response & Refactor#2

Merged
garethpotter merged 16 commits into
mainfrom
socket-backend
May 28, 2025
Merged

Add TCP socket backend for request/response & Refactor#2
garethpotter merged 16 commits into
mainfrom
socket-backend

Conversation

@amitchone

@amitchone amitchone commented May 22, 2025

Copy link
Copy Markdown
Collaborator
  • Adds a TCP socket backend to accommodate exec, fetch, get, and update functionality on IP servers.
  • Slightly refactors some duplicated code and functionality, make better use of inheritance
  • Refactor import logic and folder structure
  • Remove unnecessary files

@garethpotter garethpotter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably wants a quick refactor to move all the common stuff to a base or helper class to make future work easier.

Comment thread python_thingset/response.py Outdated
Comment thread python_thingset/socket_backend.py Outdated
Comment thread python_thingset/socket_backend.py Outdated
Comment thread python_thingset/socket_backend.py Outdated
@amitchone amitchone requested a review from garethpotter May 27, 2025 20:37
@amitchone amitchone changed the title Add TCP socket backend for request/response Add TCP socket backend for request/response & Refactor May 27, 2025

@garethpotter garethpotter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent refactor; only a very minor comment on some of the defaults but these could be changed later; they aren't critical.

Comment thread python_thingset/thingset.py
init_block: bool = True,
source_bus: int = 0x00,
target_bus: int = 0x00,
port: str = "/dev/pts/5",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhat arbitrary default.

Comment thread python_thingset/thingset.py
Comment thread python_thingset/thingset.py
@garethpotter garethpotter merged commit 105683b into main May 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants