gateway.mqttsn.conf.example 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. ## Gateway MQTT-SN
  2. gateway.mqttsn {
  3. ## When publishing or subscribing, prefix all topics with a mountpoint string.
  4. ## It's a way that you can use to implement isolation of message routing between different
  5. ## gateway protocols
  6. mountpoint = "mqttsn/"
  7. ## Whether to periodically broadcast ADVERTISE messages
  8. broadcast = true
  9. ## The Gateway ID.
  10. ## When the broadcast option is enabled, the gateway will broadcast ADVERTISE message with this value
  11. gateway_id = 1
  12. ## Allows connectionless clients to publish messages with a Qos of -1.
  13. ## This feature is defined for very simple client implementations which do not support any other
  14. ## features except this one. There is no connection setup nor tear down, no registration nor
  15. ## subscription. The client just sends its 'PUBLISH' messages to a GW
  16. enable_qos3 = false
  17. ## The pre-defined topic IDs and topic names
  18. predefined = [
  19. {id = 1, topic = "predefined/topic1"},
  20. {id = 2, topic = "predefined/topic2"}
  21. ]
  22. listeners.udp.default {
  23. bind = "0.0.0.0:1884"
  24. }
  25. }