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
loggerEventLoggerLogger
lifetimeIHostApplicationLifetimeApplication lifetime
Methods
Configure(Code)
Configure MQTT client options
public Message Configure(Code code)
Parameters
codeCodeM586.4 code
Returns
ConfigureProtocolAsync(Code)
Configure MQTT protocol state via M586 P4
public Task<Message> ConfigureProtocolAsync(Code code)
Parameters
codeCode
Returns
PublishAsync(Code)
Publish a MQTT message using M118 P6
public Task<Message> PublishAsync(Code code)
Parameters
codeCode