You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a new configuration property for MQTT adapter called "HONO_MQTT_SEND_MESSAGE_TO_DEVICE_TIMEOUT" which will replace the current "HONO_MQTT_COMMAND_ACK_TIMEOUT" property. This is done in order to provide an abstraction for the configuration of protocols using a bidirectional connection (i.e. MQTT and AMQP).
This fixes#2026
Signed-off-by: Florian Kaltner <[email protected]>
Copy file name to clipboardExpand all lines: site/documentation/content/admin-guide/kura-adapter-config.md
+1
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ The following table provides an overview of the configuration variables and corr
44
44
|`HONO_KURA_PORT`<br>`--hono.kura.port`| no |`8883`| The secure port that the protocol adapter should listen on.<br>See [Port Configuration]({{< relref "#port-configuration" >}}) below for details. |
45
45
|`HONO_KURA_SECURE_PROTOCOLS`<br>`--hono.kura.secureProtocols`| no |`TLSv1.2`| A (comma separated) list of secure protocols that are supported when negotiating TLS sessions. Please refer to the [vert.x documentation](https://vertx.io/docs/vertx-core/java/#ssl) for a list of supported protocol names. |
46
46
|`HONO_KURA_TENANT_IDLE_TIMEOUT`<br>`--hono.kura.tenantIdleTimeout`| no |`0ms`| The duration after which the protocol adapter removes local state of the tenant (e.g. open AMQP links) with an amount and a unit, e.g. `2h` for 2 hours. See the [Spring Boot documentation](https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config-conversion-duration) for an explanation of the format. The value `0ms` disables the timeout. |
47
+
|`HONO_KURA_SEND_MESSAGE_TO_DEVICE_TIMEOUT`<br>`--hono.kura.sendMessageToDeviceTimeout`| no |`1000`| The amount of time (milliseconds) after which the sending of a command to a device using QoS 1 is considered to be failed. The value of this variable should be increased in cases where devices are connected over a network with high latency. |
47
48
48
49
The variables only need to be set if the default values do not match your environment.
Copy file name to clipboardExpand all lines: site/documentation/content/admin-guide/mqtt-adapter-config.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,8 @@ The following table provides an overview of the configuration variables and corr
27
27
|`HONO_MQTT_AUTHENTICATION_REQUIRED`<br>`--hono.mqtt.authenticationRequired`| no |`true`| If set to `true` the protocol adapter requires devices to authenticate when connecting to the adapter. The credentials provided by the device are verified using the configured [Credentials Service]({{< relref "#credentials-service-connection-configuration" >}}). Devices that have failed to authenticate are not allowed to publish any data. |
28
28
|`HONO_MQTT_BIND_ADDRESS`<br>`--hono.mqtt.bindAddress`| no |`127.0.0.1`| The IP address of the network interface that the secure port should be bound to.<br>See [Port Configuration]({{< relref "#port-configuration" >}}) below for details. |
29
29
|`HONO_MQTT_CERT_PATH`<br>`--hono.mqtt.certPath`| no | - | The absolute path to the PEM file containing the certificate that the protocol adapter should use for authenticating to clients. This option must be used in conjunction with `HONO_MQTT_KEY_PATH`.<br>Alternatively, the `HONO_MQTT_KEY_STORE_PATH` option can be used to configure a key store containing both the key as well as the certificate. |
30
-
|`HONO_MQTT_COMMAND_ACK_TIMEOUT`<br>`--hono.mqtt.commandAckTimeout`| no |`100`| The amount of time (milliseconds) after which the sending of a command to a device using QoS 1 is considered to be failed. The value of this variable should be increased in cases where devices are connected over a network with high latency. |
30
+
|`HONO_MQTT_COMMAND_ACK_TIMEOUT`<br>`--hono.mqtt.commandAckTimeout`| no |`100`| Deprecated. Use `HONO_MQTT_SEND_MESSAGE_TO_DEVICE_TIMEOUT` instead. The amount of time (milliseconds) after which the sending of a command to a device using QoS 1 is considered to be failed. The value of this variable should be increased in cases where devices are connected over a network with high latency. |
31
+
|`HONO_MQTT_SEND_MESSAGE_TO_DEVICE_TIMEOUT`<br>`--hono.mqtt.sendMessageToDeviceTimeout`| no |`1000`| The amount of time (milliseconds) after which the sending of a command to a device using QoS 1 is considered to be failed. The value of this variable should be increased in cases where devices are connected over a network with high latency. |
31
32
|`HONO_MQTT_DEFAULTS_ENABLED`<br>`--hono.mqtt.defaultsEnabled`| no |`true`| If set to `true` the protocol adapter uses *default values* registered for a device to augment messages published by the device with missing information like a content type. In particular, the protocol adapter adds default values registered for the device as (application) properties with the same name to the AMQP 1.0 messages it sends downstream to the AMQP Messaging Network. |
32
33
|`HONO_MQTT_INSECURE_PORT_BIND_ADDRESS`<br>`--hono.mqtt.insecurePortBindAddress`| no |`127.0.0.1`| The IP address of the network interface that the insecure port should be bound to.<br>See [Port Configuration]({{< relref "#port-configuration" >}}) below for details. |
33
34
|`HONO_MQTT_INSECURE_PORT_ENABLED`<br>`--hono.mqtt.insecurePortEnabled`| no |`false`| If set to `true` the protocol adapter will open an insecure port (not secured by TLS) using either the port number set via `HONO_MQTT_INSECURE_PORT` or the default MQTT port number (`1883`) if not set explicitly.<br>See [Port Configuration]({{< relref "#port-configuration" >}}) below for details. |
0 commit comments