mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(mqtt): migrate to MQTTastic-Client-KMP (#5165)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: jamesarich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
b828a1271c
commit
305a487dd7
12 changed files with 271 additions and 131 deletions
|
|
@ -16,10 +16,15 @@
|
|||
*/
|
||||
package org.meshtastic.core.repository
|
||||
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import org.meshtastic.core.model.MqttConnectionState
|
||||
import org.meshtastic.proto.MqttClientProxyMessage
|
||||
|
||||
/** Interface for managing MQTT proxy communication. */
|
||||
interface MqttManager {
|
||||
/** Observable MQTT proxy connection state for UI consumption. */
|
||||
val mqttConnectionState: StateFlow<MqttConnectionState>
|
||||
|
||||
/** Starts the MQTT proxy with the given settings. */
|
||||
fun startProxy(enabled: Boolean, proxyToClientEnabled: Boolean)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue