TcpTransport

class TcpTransport(host: String, port: Int = 4403) : RadioTransport(source)

TCP transport for the Meshtastic PhoneAPI.

Constructors

Link copied to clipboard
constructor(host: String, port: Int = 4403)

Properties

Link copied to clipboard
open override val identity: TransportIdentity
Link copied to clipboard
open override val state: StateFlow<TransportState>

Functions

Link copied to clipboard
open suspend override fun connect()
Link copied to clipboard
open suspend override fun disconnect()
Link copied to clipboard
open override fun frames(): Flow<Frame>

Cold flow that reads frames from the TCP socket.

Link copied to clipboard
open suspend override fun send(frame: Frame)