DataPacket

data class DataPacket(var to: String? = ID_BROADCAST, var bytes: ERROR CLASS: Symbol not found for ByteString??, var dataType: Int, var from: String? = ID_LOCAL, var time: Long = nowMillis, var id: Int = 0, var status: MessageStatus? = MessageStatus.UNKNOWN, var hopLimit: Int = 0, var channel: Int = 0, var wantAck: Boolean = true, var hopStart: Int = 0, var snr: Float = 0.0f, var rssi: Int = 0, var replyId: Int? = null, var relayNode: Int? = null, var relays: Int = 0, var viaMqtt: Boolean = false, var emoji: Int = 0, var sfppHash: ERROR CLASS: Symbol not found for ByteString?? = null, var transportMechanism: Int = 0) : <ERROR CLASS> ERROR CLASS: Symbol not found for CommonParcelable(source)

A parcelable version of the protobuf MeshPacket + Data subpacket.

Constructors

Link copied to clipboard
constructor(to: String? = ID_BROADCAST, bytes: ERROR CLASS: Symbol not found for ByteString??, dataType: Int, from: String? = ID_LOCAL, time: Long = nowMillis, id: Int = 0, status: MessageStatus? = MessageStatus.UNKNOWN, hopLimit: Int = 0, channel: Int = 0, wantAck: Boolean = true, hopStart: Int = 0, snr: Float = 0.0f, rssi: Int = 0, replyId: Int? = null, relayNode: Int? = null, relays: Int = 0, viaMqtt: Boolean = false, emoji: Int = 0, sfppHash: ERROR CLASS: Symbol not found for ByteString?? = null, transportMechanism: Int = 0)
constructor(to: String?, channel: Int, text: String, replyId: Int? = null)

Syntactic sugar to make it easy to create text messages

constructor(to: String?, channel: Int, waypoint: ERROR CLASS: Symbol not found for Waypoint)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var bytes: ERROR CLASS: Symbol not found for ByteString??
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var emoji: Int
Link copied to clipboard

If there was an error with this message, this string describes what was wrong.

Link copied to clipboard
var from: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var id: Int
Link copied to clipboard
Link copied to clipboard
var relays: Int
Link copied to clipboard
var replyId: Int?
Link copied to clipboard
var rssi: Int
Link copied to clipboard
var sfppHash: ERROR CLASS: Symbol not found for ByteString??
Link copied to clipboard
var snr: Float
Link copied to clipboard
Link copied to clipboard
val text: String?

If this is a text message, return the string, otherwise null

Link copied to clipboard
var time: Long
Link copied to clipboard
var to: String?
Link copied to clipboard

The transport mechanism this packet arrived over (see MeshPacket.TransportMechanism).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val waypoint: ERROR CLASS: Symbol not found for Waypoint??

Functions

Link copied to clipboard
fun readFromParcel(parcel: ERROR CLASS: Symbol not found for CommonParcel)