gateway.lwm2m.conf.example 891 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ##--------------------------------------------------------------------
  2. ## Gateway LwM2M
  3. ##
  4. ## Add a LwM2M 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.lwm2m {
  9. auto_observe = false
  10. enable = true
  11. enable_stats = true
  12. idle_timeout = 30s
  13. lifetime_max = 86400s
  14. lifetime_min = 1s
  15. mountpoint = "lwm2m2/"
  16. qmode_time_window = 22s
  17. translators {
  18. command {
  19. topic = "dn/#"
  20. }
  21. notify {
  22. topic = "up/notify"
  23. }
  24. register {
  25. topic = "up/resp"
  26. },
  27. response {
  28. topic = "up/resp"
  29. },
  30. update {
  31. topic = "up/resp"
  32. }
  33. }
  34. update_msg_publish_condition = always
  35. xml_dir = "/etc/emqx/lwm2m_xml"
  36. }