Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesolarnomad/ttn-proto-generator
Generator for TTN decoder, validator and converter functions from a given .proto descriptor
https://github.com/thesolarnomad/ttn-proto-generator
arduino generator iot protobuf thethingsnetwork ttn
Last synced: 26 days ago
JSON representation
Generator for TTN decoder, validator and converter functions from a given .proto descriptor
- Host: GitHub
- URL: https://github.com/thesolarnomad/ttn-proto-generator
- Owner: thesolarnomad
- License: mit
- Created: 2017-03-24T11:27:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T06:17:32.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T19:44:27.330Z (7 months ago)
- Topics: arduino, generator, iot, protobuf, thethingsnetwork, ttn
- Language: JavaScript
- Homepage:
- Size: 393 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generator for Data functions for The Things Network based on protobuf
[![Build Status](https://travis-ci.org/thesolarnomad/ttn-proto-generator.svg?branch=master)](https://travis-ci.org/thesolarnomad/ttn-proto-generator)## 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
```bash
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](https://console.thethingsnetwork.org).
Just take the output and paste it into the console.