Skip to main content

ConnectReturnCode Enum

Namespace: GHIElectronics.TinyCLR.Networking.Mqtt · Assembly: GHIElectronics.TinyCLR.Networking.Mqtt

Result of a CONNECT request reported by the broker.

public enum ConnectReturnCode

Fields

NameValueDescription
ConnectionAccepted0Connection succeeded.
UnacceptableProtocol1Broker does not support the requested MQTT protocol version.
IdentifierRejected2The supplied client ID is not valid or is in use.
ServerUnavailable3Broker reachable but currently rejecting connections.
BadUserNameOrPassword4Authentication failed.
NotAuthorized5Authenticated client is not authorized for this operation.
Unknown-1No CONNACK received or the code didn't match a known value.