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

Add support for message decryption and a set of get commands #62

Merged
merged 1 commit into from
Nov 27, 2021

Conversation

minhtritran
Copy link
Contributor

Add support for message decryption and a set of get commands.

Addresses issue #58

Copy link
Owner

@WesSouza WesSouza left a comment

Choose a reason for hiding this comment

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

Thanks for this!

Just added some small requests.

@@ -137,4 +137,14 @@ export class LGEncryption {

return Buffer.concat([ivEnc, dataEnc]);
}

decrypt(cipher: Buffer) {
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add tests for this function to test/LGEncryption.test.ts with sample payloads?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

return await this.sendCommand(`VOLUME_MUTE ${isMuted ? 'on' : 'off'}`);
}

async getMacAddress(type: 'wired' | 'wifi') {
Copy link
Owner

Choose a reason for hiding this comment

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

Can you move those functions in the class so they are in alphabetical order?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

README.md Outdated
@@ -175,6 +172,46 @@ Sets the volume mute state. Returns a promise.
await lgtv.setVolumeMute(false);
```

### `.getMacAddress(type: 'wired' | 'wifi')`
Copy link
Owner

Choose a reason for hiding this comment

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

Can you move those functions in the documentation so they are in alphabetical order?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@minhtritran minhtritran requested a review from WesSouza October 21, 2021 10:30
@WesSouza WesSouza added the enhancement New feature or request label Nov 27, 2021
@WesSouza WesSouza linked an issue Nov 27, 2021 that may be closed by this pull request
@WesSouza
Copy link
Owner

@minhtritran apologies for force pushing on your fork, but I couldn't find another way to get the tests to run.

I didn't change anything.

@WesSouza WesSouza merged commit 7943e01 into WesSouza:main Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Response decryption
2 participants