@particle/device-os-protobuf v2.4.2
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.
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
6 months ago
6 months ago
7 months ago
6 months ago
6 months ago
6 months ago
12 months ago
12 months ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago