-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
src/classes/LGTV.ts
Outdated
return await this.sendCommand(`VOLUME_MUTE ${isMuted ? 'on' : 'off'}`); | ||
} | ||
|
||
async getMacAddress(type: 'wired' | 'wifi') { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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')` |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@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. |
Add support for message decryption and a set of get commands.
Addresses issue #58