gateway.mqttsn.conf.example 1.4 KB

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