Skip to content

Standalone TagoTiP client for sending device commands - #68

Closed
RicardoStoklosa wants to merge 1 commit into
mainfrom
feat/tagotip-standalone-client
Closed

Standalone TagoTiP client for sending device commands#68
RicardoStoklosa wants to merge 1 commit into
mainfrom
feat/tagotip-standalone-client

Conversation

@RicardoStoklosa

Copy link
Copy Markdown
Member

Summary

Add a standalone TagoTiP client for sending device commands. Constructed directly with a Service Authorization token and exposed as a top-level export (from tagoio_sdk import TagoTiP), tagotip.cmd({serial, protocol, body}) wraps POST /tip/cmd. It is intentionally not under Services, which defaults its token to the analysis token. Ports tago-io/sdk-js#185 to the Python SDK.

Test plan

  • Unit test in tests/TagoTiP/test_tagotip.py (asserts request body, response, and token header)
  • uv run pytest tests/ passes
  • uv run ruff check and ruff format --check clean on the new module and test
  • Import smoke: TagoTiP exported at top level, Services no longer exposes tagotip
  • Manual: ran TagoTiP({"token": "<service-auth>"}).cmd({"serial": "mqtt1", "protocol": "mqtt", "body": "reboot-now"}) against the production API, response Command sent

Risk (CIA)

Likelihood: 🟢 Low | Impact: 🟢 Low | Exposure: 🟢 Low
Additive change; new standalone client, no existing behavior touched.

Expose TagoTiP as a top-level export constructed with a Service Authorization token. cmd({serial, protocol, body}) wraps POST /tip/cmd. Not under Services, which defaults to the analysis token.
@RicardoStoklosa

Copy link
Copy Markdown
Member Author

Superseded by #69, rebuilt on current main so it cleanly removes the services.tagotip shape merged in #67.

@RicardoStoklosa
RicardoStoklosa deleted the feat/tagotip-standalone-client branch August 18, 2026 20:06
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.

1 participant