class Mappings::MqttOptions
- Mappings::MqttOptions
- Reference
- Object
Overview
A class representing the configuration of the MQTT client.
- broker_address: Address of the MQTT broker in the form
ip:port
. - username: Username to use to connect to the broker. Nullable.
- password: Password to use to connect to the broker. Nullable.
- tls_hostname: Hostname to use for the TLS configuration. Nullable, setting a value enables TLS.
- tls_ca_file: CA files to use if TLS is enabled. Nullable.
- tls_ca_path: CA path to use if TLS is enabled. Nullable.
- tls_client_key: Client key to use if TLS is enabled. Nullable.
- tls_client_cert: Client cert to use if TLS is enabled. Nullable.
- tls_disable_root_store: Boolean indicating if the root store should be disabled if TLS is enabled.
Defined in:
bindings/mappings.crConstructors
Instance Method Summary
Constructor Detail
def self.new(broker_address : String? = nil, username : String? = nil, password : String? = nil, tls_hostname : String? = nil, tls_ca_file : Array(String)? = nil, tls_ca_path : Array(String)? = nil, tls_client_key : String? = nil, tls_client_cert : String? = nil, tls_disable_root_store : UInt8 = 0)
#