Skip to content

lamhoangx/MQTTClient_Flutter

Repository files navigation

MQTT Connection Sample

Mobile's App is written by Flutter. Demonstrates how to use mqtt_client with Flutter.
Extends from https://github.com/shamblett/mqtt_client/tree/master/example/flutter

Getting Started

You can install packages mqtt_client from the command line: $ flutter packages get

Screenshots

Screenshots

Video

https://youtu.be/ZDa0UNjTGzw

You can setup a server through cloundmqtt or mosquitto for the testing. By default in code, information environment for testing is:

    String broker           = 'm15.cloudmqtt.com';
    int    port             = 14375;
    String username         = 'wbpwjaso';
    String passwd           = 'eO-kjpnhyvrI';
    String clientIdentifier = 'lamhx';

If it does not work, the service has stopped.


Hope doing well and happy testing!