Struct PamojaMqttConfig
Connection settings passed to pamoja_mqtt_client_new(ref PamojaMqttConfig),
mirroring PamojaMqttConfig in pamoja.h.
public struct PamojaMqttConfig
- Inherited Members
Remarks
ClientId and Host are pointers to null-terminated
UTF-8 strings borrowed for the duration of the call. A KeepAliveSecs,
Capacity, or MaxPacketSize of 0 selects the
core default. Username, Password, Will, and
Tls are each Zero when unused.
Fields
Capacity
Bound on outstanding client requests, or 0 for the default of 64.
public uint Capacity
Field Value
ClientId
Pointer to the UTF-8 MQTT client identifier presented to the broker.
public nint ClientId
Field Value
Host
Pointer to the UTF-8 broker hostname or IP address.
public nint Host
Field Value
KeepAliveSecs
Keep-alive interval in seconds, or 0 for the default of 30.
public uint KeepAliveSecs
Field Value
MaxPacketSize
The largest packet the connection sends or accepts, in bytes, or 0 for the default of 10,240.
public uint MaxPacketSize
Field Value
Password
Pointer to the UTF-8 password to sign in with, or zero.
public nint Password
Field Value
Port
The broker TCP port, conventionally 1883 for plaintext MQTT.
public ushort Port
Field Value
Qos
Default quality of service for publishes and subscriptions.
public PamojaQos Qos
Field Value
Tls
Pointer to a PamojaMqttTls, or zero for plain TCP.
public nint Tls
Field Value
Username
Pointer to the UTF-8 name to sign in with, or zero.
public nint Username
Field Value
Will
Pointer to a PamojaMqttWill, or zero.
public nint Will