GatewayConfiguration

data class GatewayConfiguration(val serialNumber: String? = null, val hash: Int? = null, val hashTimestamp: Long? = null, val payloadSplitInfo: Int? = null, val newPassword: String? = null, val encryptionKey1: String? = null, val encryptionKey2: String? = null, val encryptionKey3: String? = null, val encryptionKey4: String? = null, val ipAddress: IpAddress? = null, val subnetMask: NetMask? = null, val defaultGatewayIp: IpAddress? = null, val dhcpEnabled: Boolean? = null, val phyMode: GatewayConfiguration.PhyMode? = null, val plmn: Plmn? = null, val apn: Apn? = null, val dnsIp: IpAddress? = null, val ntpAddress: IpAddressOrHostname? = null, val proxyAddress: IpAddressOrHostname? = null, val proxyPort: Port? = null, val proxyUsername: String? = null, val proxyPassword: String? = null, val proxyType: GatewayConfiguration.ProxyType? = null, val dataServerAddress: IpAddressOrHostname? = null, val dataServerPort: Port? = null, val dataServerTlsEnabled: Boolean? = null, val dataServerToken: String? = null, val dataServerApiVersion: GatewayConfiguration.DataServerApiVersion? = null, val dataSyncEnabled: Boolean? = null, val heartbeatSendingInterval: Int? = null, val simCardPin: String? = null, val sensorNotificationsEnabled: Boolean? = null)

Configuration settings for a Gateway device.

Each configuration field is optional, meaning only the fields that need to be changed should be set. To clear string values, set them to an empty string.

Constructors

Link copied to clipboard
constructor(serialNumber: String? = null, hash: Int? = null, hashTimestamp: Long? = null, payloadSplitInfo: Int? = null, newPassword: String? = null, encryptionKey1: String? = null, encryptionKey2: String? = null, encryptionKey3: String? = null, encryptionKey4: String? = null, ipAddress: IpAddress? = null, subnetMask: NetMask? = null, defaultGatewayIp: IpAddress? = null, dhcpEnabled: Boolean? = null, phyMode: GatewayConfiguration.PhyMode? = null, plmn: Plmn? = null, apn: Apn? = null, dnsIp: IpAddress? = null, ntpAddress: IpAddressOrHostname? = null, proxyAddress: IpAddressOrHostname? = null, proxyPort: Port? = null, proxyUsername: String? = null, proxyPassword: String? = null, proxyType: GatewayConfiguration.ProxyType? = null, dataServerAddress: IpAddressOrHostname? = null, dataServerPort: Port? = null, dataServerTlsEnabled: Boolean? = null, dataServerToken: String? = null, dataServerApiVersion: GatewayConfiguration.DataServerApiVersion? = null, dataSyncEnabled: Boolean? = null, heartbeatSendingInterval: Int? = null, simCardPin: String? = null, sensorNotificationsEnabled: Boolean? = null)

Properties

Link copied to clipboard
val apn: Apn?

Access Point Name (APN) for the Modem interface. Length: Up to 49 characters.

Link copied to clipboard

Data server address (IP/URL). Length: Up to 63 characters.

Link copied to clipboard

API version for measurements from the data server.

Link copied to clipboard

Data server port. Range: 1:65535.

Link copied to clipboard

TLS state for communication with the data server (enabled/disabled).

Link copied to clipboard

Data server token. Length: Up to 36 characters.

Link copied to clipboard

Data synchronization state (enabled/disabled). Enabling this will save sensors' measurements added to Efento Cloud in the gateway's internal memory.

Link copied to clipboard

Default gateway IPv4 address for the Ethernet interface.

Link copied to clipboard

DHCP state (enabled/disabled) for the Ethernet interface.

Link copied to clipboard

DNS IPv4 address.

Link copied to clipboard

1st encryption key. Length: Up to 16 characters.

Link copied to clipboard

2nd encryption key. Length: Up to 16 characters.

Link copied to clipboard

3rd encryption key. Length: Up to 16 characters.

Link copied to clipboard

4th encryption key. Length: Up to 16 characters.

Link copied to clipboard
val hash: Int?

Identifier of the current configuration. This value changes with each modification to the configuration. This field is only sent by the device.

Link copied to clipboard

Timestamp when the new configuration was set (Unix epoch). The value is 0 if the device has not fetched the real time.

Link copied to clipboard

Interval for sending heartbeat (gateway status) to the server, in minutes. Range: 1:65535.

Link copied to clipboard

IPv4 address for the Ethernet interface.

Link copied to clipboard

New gateway password (only sent by the user). Length: Up to 16 characters.

Link copied to clipboard

NTP server address (IP/URL). Length: Up to 63 characters.

Link copied to clipboard

Information about payload splitting:

Link copied to clipboard

PHY mode for the Ethernet interface.

Link copied to clipboard
val plmn: Plmn?

PLMN selection for the Modem interface.

Link copied to clipboard

Proxy address (IP/URL). Length: Up to 47 characters.

Link copied to clipboard

Proxy password. Length: Up to 16 characters.

Link copied to clipboard

Proxy port. Range: 1:65535.

Link copied to clipboard

Proxy type (no proxy, basic authentication, or no authentication).

Link copied to clipboard

Proxy username. Length: Up to 31 characters.

Link copied to clipboard

Sensor notifications state (enabled/disabled). Enabling this option will cause sensors notifications to be sent over bluetooth.

Link copied to clipboard

Serial number of the device. Sent only by the device.

Link copied to clipboard

SIM card PIN code. Length: Up to 8 characters. Set to an empty string to not use a SIM card PIN code.

Link copied to clipboard

Subnet mask for the Ethernet interface.