ServiceEnvelope: Message<"meshtastic.ServiceEnvelope"> & {
    channelId: string;
    gatewayId: string;
    packet?: MeshPacket;
}

This message wraps a MeshPacket with extra metadata about the sender and how it arrived.

Type declaration

  • channelId: string

    The global channel ID it was sent on

    from field: string channel_id = 2;

  • gatewayId: string

    The sending gateway node ID. Can we use this to authenticate/prevent fake nodeid impersonation for senders? - i.e. use gateway/mesh id (which is authenticated) + local node id as the globally trusted nodenum

    from field: string gateway_id = 3;

  • Optionalpacket?: MeshPacket

    The (probably encrypted) packet

    from field: meshtastic.MeshPacket packet = 1;

from message meshtastic.ServiceEnvelope