gateway.lwm2m.conf.example 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ## Gateway LwM2M
  2. gateway.lwm2m {
  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 = "lwm2m/"
  7. ## The Directory for LwM2M Resource definition.
  8. xml_dir = "etc/lwm2m_xml/"
  9. ## Automatically observe the object list of REGISTER packet.
  10. auto_observe = false
  11. ## Minimum value of lifetime allowed to be set by the LwM2M client.
  12. lifetime_min = 1s
  13. ## Maximum value of lifetime allowed to be set by the LwM2M client.
  14. lifetime_max = 86400s
  15. ## The value of the time window during which the network link is considered valid by
  16. ## the LwM2M Gateway in QMode mode.
  17. qmode_time_window = 22s
  18. ## Topic configuration for LwM2M's gateway publishing and subscription.
  19. translators {
  20. ## The topic for receiving downstream commands.
  21. ## For each new LwM2M client that succeeds in going online, the gateway creates a
  22. ## subscription relationship to receive downstream commands and send it to the LwM2M client
  23. command { topic = "dn/#" }
  24. ## The topic for gateway to publish the notify events from LwM2M client.
  25. ## After succeed observe a resource of LwM2M client, Gateway will send the notify events
  26. ## via this topic, if the client reports any resource changes
  27. notify { topic = "up/notify" }
  28. ## The topic for gateway to publish the register events from LwM2M client.
  29. register { topic = "up/register" },
  30. ## The topic for gateway to publish the acknowledge events from LwM2M client.
  31. response { topic = "up/resp" },
  32. ## The topic for gateway to publish the update events from LwM2M client.
  33. update { topic = "up/resp" }
  34. }
  35. ## Policy for publishing UPDATE event message.<br/>
  36. ## - always: send update events as long as the UPDATE request is received.<br/>
  37. ## - contains_object_list: send update events only if the UPDATE request carries any Object List"""
  38. update_msg_publish_condition = always
  39. listeners.udp.default {
  40. bind = "0.0.0.0:5784"
  41. }
  42. }