DataPacket
@Serializable
A parcelable version of the protobuf MeshPacket + Data subpacket.
Constructors
Link copied to clipboard
constructor(to: String? = ID_BROADCAST, bytes: 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: ByteString? = null, transportMechanism: Int = 0)
Syntactic sugar to make it easy to create text messages