30 lines
422 B
Markdown
30 lines
422 B
Markdown
# Dependencies
|
|
|
|
- protobuf-compiler
|
|
- python-sqlite
|
|
|
|
# Generate files from .proto file
|
|
|
|
```protoc -I=./ --python_out=./ message.proto```
|
|
|
|
|
|
# Make the config.ini file
|
|
|
|
Following this format create a config.ini file.
|
|
|
|
|
|
```ini
|
|
|
|
[Default]
|
|
AppId=<redacted>
|
|
AccessKey=ttn-account-v2.<redacted>
|
|
|
|
```
|
|
|
|
|
|
# Run the Gateway
|
|
|
|
After generating the protobuf files and making a config.ini file one can simply run:
|
|
|
|
```python3 main.py```
|