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)
Syntactic sugar to make it easy to create text messages