Skip to content

okan-oz/mqtt_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MQTT Sample with Chat

This project is sample for MQTT with flutter.

Screenshot 2022-02-13 at 22 06 33

The MQTT client has been used successfully with the MQTT broker(broker.emqx.io)

You can change default settings on mqtt_setting_model.dart file and change another broker.

Also you see the state management Flutter Bloc and Provider samples using for Chat Screen on this project and you can see the using of sqflite

Firstly login with your credential .These informations are used for connection the MQTT server.

HomeBloc(ConnectToServerEvent) is responsible for the open the connection with MQTT.

Screenshot 2022-02-13 at 15 23 32

If you want to use it on more than one device at the same time, you should write different phone numbers. Any verification etc. won't be wanted.

Screenshot 2022-02-13 at 15 24 37

You can subscribe to the topic you want on this screen.

Screenshot 2022-02-13 at 21 42 22

You can review this file for details of mqtt operations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published