Skip to content

Conversation

@aljazdu
Copy link
Contributor

@aljazdu aljazdu commented Oct 10, 2025

Purpose

Update snaps and events to V2

Specification

None / not applicable
Changes in the uploading of the events and snaps to the Luxonis Hub, the protobuf definition used in connection to events and snaps, examples in C++ & Python

Dependencies & Potential Impact

None / not applicable

Deployment Plan

None / not applicable

Testing & Validation

This was tested using the stg and prod versions of the Hub, by uploading different snaps and events

@aljazdu aljazdu added the testable PR is ready to be tested label Oct 10, 2025
@aljazdu aljazdu requested a review from moratom October 10, 2025 12:18
Copy link
Collaborator

@moratom moratom left a comment

Choose a reason for hiding this comment

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

Thanks Aljaz!
Left a few questions, comments

uint64_t size;
std::string checksum;
proto::event::PrepareFileUploadClass classification;
friend class EventsManager;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does the EventsManager need to be a friend here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the current implementation it's accessing FileData's private members directly

# Properties
# Enter you hub team's api-key
eventMan = dai.EventsManager()
eventMan.setToken("")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Needed?

Copy link
Contributor Author

@aljazdu aljazdu Oct 14, 2025

Choose a reason for hiding this comment

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

I left it here to "alert" the user that the token must be set - specifically in the peripheral mode. I can remove it, if this doesn't make sense

@aljazdu aljazdu self-assigned this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testable PR is ready to be tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants