Skip to content

rampaq/uun-iot-udpparser

Repository files navigation

UDP Server with CBOR Decoder

Data forwarding via the HTTP endpoint is activated using the HTTP_URL variable. Example: HTTP_URL="https://best.app.example"

Forwarding via MQTT with MQTT_ENABLE=true

Environ

Name Default
PORT 5000
DECODER_YAML ./decoder.yaml
LOG_LEVEL info
LOG_PRETTY false
HTTP_URL
MQTT_ENABLE false
MQTT_BROKER_URL mqtt://localhost:1883
MQTT_USERNAME null
MQTT_PASSWORD null
MQTT_CLIENT_ID null
MQTT_CA null
MQTT_CERT null
MQTT_KEY null
HTTP_LOG_ENABLE true
HTTP_LOG_PORT 5000
LOG_FILE ./log.json

Local dev

pnpm install

pnpm run dev

Dev MQTT Broker

docker run --rm -it -p 1883:1883 eclipse-mosquitto mosquitto -c /mosquitto-no-auth.conf

Run docker compose

DOCKER_BUILDKIT=1 docker compose up

License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ by HARDWARIO a.s. in the heart of Europe.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published