You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello mqtt 3 dosnt work this method, no changes, what i did wrong?
final s =
client.subscribe(topicOut, MqttQos.atLeastOnce)?.changes.listen((data) {
logger.e('change logs');
});
The text was updated successfully, but these errors were encountered:
This will only give you changes to the Subscription you have generated, if you want to receive publish messages on this subscription use the updates stream -
client.updates!.listen((List<MqttReceivedMessage<MqttMessage?>>? c) {
final recMess = c![0].payload as MqttPublishMessage;
final pt =
MqttPublishPayload.bytesToStringAsString(recMess.payload.message);
...
Hello mqtt 3 dosnt work this method, no changes, what i did wrong?
final s =
client.subscribe(topicOut, MqttQos.atLeastOnce)?.changes.listen((data) {
logger.e('change logs');
});
The text was updated successfully, but these errors were encountered: