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

Enable / Disable EMG streaming #3

Open
aarontabor opened this issue Nov 13, 2016 · 1 comment
Open

Enable / Disable EMG streaming #3

aarontabor opened this issue Nov 13, 2016 · 1 comment

Comments

@aarontabor
Copy link
Contributor

Currently, EMG streaming begins when an instance of MyoEMG is created, and continues for entirely of the object's existence. In practice this will probably be unnecessarily demanding on the armband's battery life, and a mechanism to enable/disable streaming should be added to the MyoEMG class.

Proposed Solution

Add instance methods enableEmgStreaming() and disableEmgStreaming() to the MyoEMG class. EMG streaming can be enabled/disabled by subscribing/unsubscribing to notifications from the 4 EMG Data channels.

@aarontabor
Copy link
Contributor Author

See the class constructor for an example of subscribing to notifications.

  • To subscribe, write the message 0x01 0x00 to the appropriate handle
  • To unsubscribe, write the message 0x00 0x00 to the appropriate handle

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

No branches or pull requests

1 participant