DataPacket
@Serializable
A data class version of the protobuf MeshPacket + Data subpacket.
Constructors
Link copied to clipboard
constructor(to: String? = NodeAddress.ID_BROADCAST, bytes: ByteString?, dataType: Int, from: String? = NodeAddress.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, xeddsaSigned: Boolean = false)
Syntactic sugar to make it easy to create text messages
Properties
Link copied to clipboard
Link copied to clipboard
Type-safe interpretation of DataPacket.to.
Link copied to clipboard
If there was an error with this message, this string describes what was wrong.
Link copied to clipboard
Checks whether this packet is addressed to the broadcast channel.
Link copied to clipboard
Link copied to clipboard
Type-safe interpretation of DataPacket.from.
Link copied to clipboard
Link copied to clipboard
The transport mechanism this packet arrived over (see MeshPacket.TransportMechanism).
Link copied to clipboard
True when the radio verified this broadcast's XEdDSA signature (MeshPacket.xeddsa_signed).