Closed lucasjinreal closed 6 months ago
You need to start a session with the broker, look at this API -
/// Starts a persistent session with the broker.
/// The [sessionExpiryInterval] can be any none zero value up to the the maximum
/// [MqttConnectVariableHeader.sessionDoesNotExpire].
/// If 0 is passed the maximum value is used.
/// Mutually exclusive with [startClean], the last method applied to the message will take
/// effect.
MqttConnectMessage startSession(
and read the MQTT5 spec for more details.
Hello, I have connect to server like this:
But it can not receive offline messages, all messages which send to client when it was offline all missed.
Why?