2.4.2 • Published 4 months ago

@particle/device-os-protobuf v2.4.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

Particle Device OS Protobuf Definitions

Particle devices expose Control Requests over USB and BLE for functionality like device information and Wi-Fi setup. This repo contains the definition for all these control requests in Protobuf format.

Node.js

Usage

Install package with npm install @particle/device-os-protobuf

const proto = require('@particle/device-os-protobuf');
const controlProto = proto.particle.ctrl;

// Encode message
const request = controlProto.GetSerialNumberRequest;
const m = request.create({ /* GetSerialNumberRequest fields */ });
const buf = request.encode(m).finish();

// Decode response
const response = controlProto.GetSerialNumberReply;
const responseObj = response.decode(data);

Development

Ensure you have installed dependencies via npm install.

Edit the protocol buffer definitions in proto.

Generate the JavaScript files with npm run build

Release

Tag a new version with npm version and push git push --follow-tags. CircleCI will publish the package to npm.

2.4.3-rc.0

4 months ago

2.4.2

4 months ago

2.4.1

4 months ago

2.4.0

4 months ago

2.3.0

5 months ago

2.2.0-rc.2

6 months ago

2.2.0-rc.3

6 months ago

2.2.0-rc.0

7 months ago

2.2.0-rc.1

6 months ago

2.2.0-rc.4

6 months ago

2.2.0

6 months ago

2.1.2

12 months ago

2.1.1

12 months ago

2.0.0-rc.0

2 years ago

2.0.0

1 year ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.1.0-4

2 years ago

1.1.0-3

2 years ago

1.1.0-2

2 years ago

1.1.0-1

2 years ago

1.1.0-0

2 years ago

1.0.0

2 years ago

1.0.0-rc.2

2 years ago

1.0.0-rc.1

2 years ago