toggle menu
NavigationApp
androidJvm
switch theme
search in API
navigation-ux-synchronization-mqtt
/
com.mapbox.dash.synchronization.mqtt
/
MqttCommunicator
Mqtt
Communicator
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY_GROUP_PREFIX
]
)
class
MqttCommunicator
(
brokerUrl
:
String
,
scope
:
CoroutineScope
,
retrier
:
Retrier
)
Members
Constructors
Mqtt
Communicator
Link copied to clipboard
constructor
(
brokerUrl
:
String
,
scope
:
CoroutineScope
,
retrier
:
Retrier
)
Properties
client
Link copied to clipboard
val
client
:
IMqttClient
Functions
connect
Link copied to clipboard
fun
connect
(
)
disconnect
Link copied to clipboard
fun
disconnect
(
)
emit
To
Queue
Link copied to clipboard
fun
emitToQueue
(
requireBeingConnected
:
Boolean
=
true
,
shouldRetry
:
Boolean
=
false
,
action
:
(
)
->
Boolean
)