flutter_mqtt 1.0.0+3 copy "flutter_mqtt: ^1.0.0+3" to clipboard
flutter_mqtt: ^1.0.0+3 copied to clipboard

discontinuedreplaced by: dart_mqtt
outdated

a mqtt library to easy connect via tcp/ssl,dependence flutter_xtransport,developing,not stable.

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.

Features #

TODO: List what your package can do. Maybe include images, gifs, or videos.

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage #

TODO: Include short and useful examples for package users. Add longer examples to /example folder.

const like = 'sample';

Additional information #

TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.

Reconnection attributes #

Besides the error and advisory callbacks mentioned above you can also set a few reconnection attributes in the connection options:

  • allowReconnect bool

allowReconnect enables reconnection logic to be used when we encounter a disconnect from the current server. Default is false

  • reconnectWait Duration

reconnectWait sets the time to backoff after attempting to (and failing to) reconnect. Default const Duration(seconds: 2)

  • customReconnectDelayCB Duration Function()?

customReconnectDelayCB is invoked after the library tried every URL in the server list and failed to reconnect. It passes to the user the current number of attempts. This function returns the amount of time the library will sleep before attempting to reconnect again. It is strongly recommended that this value contains some jitter to prevent all connections to attempt reconnecting at the same time.

0
likes
0
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

a mqtt library to easy connect via tcp/ssl,dependence flutter_xtransport,developing,not stable.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter_xtransport

More

Packages that depend on flutter_mqtt