particle-iot / particle-usb

A library for accessing Particle USB devices
Apache License 2.0
5 stars 1 forks source link

particle-usb should export enumerable list of all possible ctrl request types using canonical names and provide ability to invoke any request type defined in Device OS #55

Closed joegoggins closed 2 years ago

joegoggins commented 2 years ago

WILL NOT MERGE:

This PR demonstrates how a potential future sendProtobufRequest method will work. It is a proof of concept.

How to see it in action?

  1. checkout branch
  2. npm install
  3. Run node demo.js

Observe something like this:

serialNumberHighLevelAPI P046AF1450000FC
serialNumberLowLevelAPI P046AF1450000FC

Story details: https://app.shortcut.com/particle/story/95109

joegoggins commented 2 years ago

Closing, but keeping branch around for a bit as reference in future work in sc-95530.