Skip to main content

Parameter Settings

Before starting, we need to set some system parameters for the gateway. Please refer to the following content for configuration:

Historical Database Settings

The gateway provides the function of writing historical data to InfluxDB. Through simple configuration, all tag data's historical records and alarm records can be saved to InfluxDB for storage. The specific configuration is as follows:

influxdb

Configuration item description:

  • Address: Used to configure the URL address of the influxdb service
  • Username
  • Password
  • Database: The gateway will automatically check if the database exists on the corresponding server when it starts. If not, it will be created automatically
  • Archive Interval Time: The gateway adopts a batch writing method for historical data. This event is used to specify the time interval for batch writing
  • Resume on Breakpoint: Once enabled, if there is a network problem or other conditions that prevent the completion of historical data writing, the data will be cached inside the gateway. Once the problem is resolved, it will automatically upload to the historical database
  • Retention Time: The time to save historical data locally when the network is disconnected

MQTT Configuration

The gateway has a built-in MQTT Broker. In the parameter settings, you can configure the connection to other MQTT Brokers for message publishing.

mqtt

Configuration item description:

  • Topic Prefix: When a tag does not specify a topic, this topic prefix plus the tag name will be used to assign a topic for each tag, in the format: {topic prefix}/{tag name}
  • Host Address (TCP): IP of the MQTT Broker
  • Port: Port of the MQTT Broker, the default port for the built-in broker in the gateway is 1884
  • Host Address (WS): Reserved and not yet used
  • Username
  • Password

Alibaba Cloud SMS Configuration

The gateway has built-in support for Alibaba Cloud SMS, which can send SMS notifications to relevant personnel when an alarm is triggered.

aliyun

Configuration item description:

  • Enable
  • AccessKeyId: Obtain from the Alibaba Cloud management console, contact us for the specific application method and operation steps document
  • AccessKeySecret: Obtain from the Alibaba Cloud management console, contact us for the specific application method and operation steps document
  • Signature
  • Template ID
  • Template Content
After completing the above parameter configuration, the gateway needs to be restarted before it takes effect.