Closed lamikam100 closed 5 years ago
You are subscribing and getting a sub ack back, however you seem to have two listeners,
subscription = client.updates.listen(_onMessage); and client.updates.listen((List<MqttReceivedMessage<MqttMessage>> c) {.......
also your subscription QOS is exactlyOnce, try changing this.
Its also possible the broker has nothing to send to you, check your broker logs.
I am trying to re-purpose the code from this project - https://github.com/ricardoogliari/flutter_mqtt
I can connect to the broker and subscribe, but never get any notifications. Here is a debug listing: