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

Feature/keys protocol #338

Merged
merged 7 commits into from
Feb 7, 2017
Merged

Feature/keys protocol #338

merged 7 commits into from
Feb 7, 2017

Conversation

m-mcgowan
Copy link
Contributor

fixes #279 and #280 by reading the current protocol from the device when it is not specified, and the device supports multiple protocols.

Other changes:

  • particle keys protocol displays the currently configured protocol for a device
  • removed multiple protocol support from Photon/P1 since these devices only support TCP out the box.
  • dfu.readBuffer/writeBuffer methods to read/write via buffers. Hides the file handling needed when working with DFU, simplifying client code (and makes testing simpler.

@monkbroc monkbroc self-requested a review February 7, 2017 01:58
Copy link
Member

@monkbroc monkbroc left a comment

Choose a reason for hiding this comment

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

Great changes. I left a tiny comment.

//backup their existing key so they don't lock themselves out.
function() {
var alg = self._getPrivateKeyAlgorithm() || 'rsa';
var alg = self._getPrivateKeyAlgorithm() || defaultKeyAlgorithm;
Copy link
Member

Choose a reason for hiding this comment

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

defaultKeyAlgorithm is not defined anywhere.

@monkbroc
Copy link
Member

monkbroc commented Feb 7, 2017

There's also the failing Travis 💣

@m-mcgowan m-mcgowan merged commit d4deefa into develop Feb 7, 2017
@technobly technobly deleted the feature/keys_protocol branch July 6, 2017 21:20
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