ttn-proto-generator

1.0.1 • Public • Published

Generator for Data functions for The Things Network based on protobuf

Build Status

Installation

npm install -g ttn-proto-generator

or

yarn global ttn-proto-generator

API

Usage: ttn-proto-generator -p [string] -m [string] -o [string]

Options:
  -p, --proto-file        The proto definition file            [required]
  -m, --message           The message path                     [required]
  -o, --output-directory  The output directory             [Default: "."]
  -h, --help              Hilfe anzeigen                        [boolean]
  -v, --version           Version anzeigen                      [boolean]

Example

ttn-proto-generator \
    -p ./my/message.proto \
    -m com.example.MyMessage

Would generate four files from the given Protobuf definition file:

  • Converter.js
  • Decoder.js
  • Encoder.js
  • Validator.js

That match the respective data functions in the Things Network Console. Just take the output and paste it into the console.

Readme

Keywords

none

Package Sidebar

Install

npm i ttn-proto-generator

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • joscha