gateway.ocpp.conf.example 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ##--------------------------------------------------------------------
  2. ## Gateway OCPP
  3. ##
  4. ## Add a OCPP-J 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.ocpp {
  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 = "ocpp/"
  13. ## The default Heartbeat time interval
  14. default_heartbeat_interval = "60s"
  15. ## The backoff for hearbeat checking times
  16. heartbeat_checking_times_backoff = 1
  17. ## Whether to enable message format legality checking.
  18. ## EMQX checks the message format of the upstream and dnstream against the
  19. ## format defined in json-schema.
  20. ## When the check fails, emqx will reply with a corresponding answer message.
  21. ##
  22. ## Enum with:
  23. ## - all: check all messages
  24. ## - upstream_only: check upstream messages only
  25. ## - dnstream_only: check dnstream messages only
  26. ## - disable: don't check any messages
  27. message_format_checking = disable
  28. ## Upload stream topic to notify third-party system whats messges/events
  29. ## reported by Charge Point
  30. ##
  31. ## Avaiable placeholders:
  32. ## - cid: Charge Point ID
  33. ## - clientid: Equal to Charge Point ID
  34. ## - action: Message Name in OCPP
  35. upstream {
  36. topic = "cp/${clientid}"
  37. ## UpStream topic override mapping by Message Name
  38. topic_override_mapping {
  39. #"BootNotification" = "cp/${clientid}/Notify/BootNotification"
  40. }
  41. reply_topic = "cp/${clientid}/Reply"
  42. error_topic = "cp/${clientid}/Reply"
  43. }
  44. dnstream {
  45. ## Download stream topic to receive request/control messages from third-party
  46. ## system.
  47. ##
  48. ## This value is a wildcard topic name that subscribed by every connected Charge
  49. ## Point.
  50. topic = "cs/${clientid}"
  51. }
  52. listeners.ws.default {
  53. bind = "0.0.0.0:33033"
  54. websocket.path = "/ocpp"
  55. }
  56. }