chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
423 stars 272 forks source link

Add ZeroMQ Pub/Sub as Integration Option #202

Closed casey-boyer-bolt-data closed 2 years ago

casey-boyer-bolt-data commented 2 years ago

I created this in the wrong account... moved to: #203

Summary

What is the use-case?

I'm in the process of deploying a full LoRa stack at the edge. We already have an MQTTS broker at the edge, but it would be a hassle to configure this bridge to access that broker (certificate generation and dissemination at scale would be more of a hassle than it's worth). I'd also like to avoid having two brokers on the same server as all I need is a means to forward packets to the local Network Server.

Implementation description

Example concept configuration:

# Integration configuration.
[integration]
type="zmq"
# Payload marshaler.
#
# This defines how the MQTT payloads are encoded. Valid options are:
# * protobuf:  Protobuf encoding
# * json:      JSON encoding (easier for debugging, but less compact than 'protobuf')
marshaler="protobuf"

  # ZMQ integration configuration.
  [integration.zmq]
  event_url="ipc:///tmp/gatewaybridge_event"
  command_url="ipc:///tmp/gatewaybridge_command"

Can you implement this by yourself and make a pull request?

I intend to implement and create a PR myself assuming it's welcomed. I would also be creating a complementary PR in the chirpstack-network-server repository implementing the other side of this integration.

casey-boyer-bolt-data commented 2 years ago

moved to #203