Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Milesight push #333

Merged
merged 7 commits into from
Jan 10, 2025
Merged

Milesight push #333

merged 7 commits into from
Jan 10, 2025

Conversation

J2thatsme
Copy link
Contributor

No description provided.

@J2thatsme J2thatsme requested a review from mariusgiger December 6, 2024 13:43
mariusgiger
mariusgiger previously approved these changes Jan 9, 2025
Copy link
Member

@mariusgiger mariusgiger left a comment

Choose a reason for hiding this comment

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

looks good, a few minor comments

function consume(event) {
const payload = event.data.payloadHex;
const bytes = Hex.hexToBytes(payload);
const decoded = {};
Copy link
Member

Choose a reason for hiding this comment

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

define the variable in the scope that it is used to prevent side-effects from previous iterations

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pretty sure its a variable message size depending on your sensor settings. So i do think its placed correctly there.

@J2thatsme J2thatsme merged commit a6b6beb into main Jan 10, 2025
4 of 5 checks passed
@J2thatsme J2thatsme deleted the milesightPush branch January 10, 2025 14:51
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.

2 participants