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

MQTT LWT Support #142

Closed sa-wilson closed 3 years ago

sa-wilson commented 4 years ago

Closes #117

Add config options for the Generic MQTT integration to register an LWT message with the broker.

I used the SetWill function with a string payload rather than the SetBinaryWill as suggested in the original issue as I figured it would be more useful for the majority of users (who would probably just want to send some JSON or something anyway), and easier to use than having to configure a byte array in the config file.

sa-wilson commented 4 years ago

Rebased onto current master (post-rename) and forced pushed.

brocaar commented 3 years ago

I'm closing this issue. I believe https://www.chirpstack.io/gateway-bridge/changelog/#v3110 does cover the use-case with the connection-state message, which uses both LWT and the state of the [GW] > [GW Bridge] connection.