Table of Contents

Class MQTT

Namespace
DuetControlServer.Utility
Assembly
DuetControlServer.dll

Static class holding functions for MQTT communication

public class MQTT
Inheritance
MQTT
Inherited Members

Constructors

MQTT(EventLogger, IHostApplicationLifetime)

Static class holding functions for MQTT communication

public MQTT(EventLogger logger, IHostApplicationLifetime lifetime)

Parameters

logger EventLogger

Logger

lifetime IHostApplicationLifetime

Application lifetime

Methods

Configure(Code)

Configure MQTT client options

public Message Configure(Code code)

Parameters

code Code

M586.4 code

Returns

Message

ConfigureProtocolAsync(Code)

Configure MQTT protocol state via M586 P4

public Task<Message> ConfigureProtocolAsync(Code code)

Parameters

code Code

Returns

Task<Message>

PublishAsync(Code)

Publish a MQTT message using M118 P6

public Task<Message> PublishAsync(Code code)

Parameters

code Code

Returns

Task<Message>