MessagingController

Messaging operations — sending data packets, reactions, and shared contacts.

Data packets go through the SDK's paced send; remote shell frames go straight to the session client.

See also

Inheritors

Functions

Link copied to clipboard
abstract suspend fun importContact(contact: SharedContact)

Imports a shared contact into the firmware's NodeDB.

Link copied to clipboard
abstract fun newRemoteShellSessionId(): Int?

A fresh non-zero remote shell session ID, or null without a radio session.

Link copied to clipboard
abstract suspend fun sendMessage(packet: DataPacket)

Sends a data packet to the mesh.

Link copied to clipboard
abstract suspend fun sendReaction(emoji: String, replyId: Int, contactKey: String)

Sends an emoji reaction to a message. Awaits local DB persistence.

Link copied to clipboard
abstract suspend fun sendRemoteShell(destNum: Int, frame: RemoteShell)

Sends one remote shell frame to destNum, PKI-encrypted with no want_ack.

Link copied to clipboard
abstract suspend fun sendSharedContact(nodeNum: Int): Boolean

Sends our shared contact information (identity and public key) to the firmware's NodeDB.