MessageRouterInterface
This specifies the interface to manage a connection over some medium to DeviceGateway.
Functions
Link copied to clipboard
abstract fun addOnSendMessageListener(listener: MessageSender.OnSendMessageListener)
Content copied to clipboard
Link copied to clipboard
abstract fun getConnectionChangedReason(): ConnectionStatusListener.ChangedReason
Content copied to clipboard
Get the connection ChangedReason.
Link copied to clipboard
Get the connection status.
Link copied to clipboard
Link copied to clipboard
Return whether the connection-oriented has been started.
Link copied to clipboard
abstract fun removeOnSendMessageListener(listener: MessageSender.OnSendMessageListener)
Content copied to clipboard
Link copied to clipboard
Resets the connection immediately.
Link copied to clipboard
Set the observer to this object.
Link copied to clipboard
abstract fun startReceiveServerInitiatedDirective(onCompletion: () -> Unit?): Boolean
Content copied to clipboard
Start the connection-oriented feature.
Link copied to clipboard
Stop the connection-oriented feature.