Mark meshPackets based on which interface received. (#7589)

This commit is contained in:
Jonathan Bennett
2025-08-11 21:47:04 -05:00
committed by GitHub
parent a2df80e833
commit e26de85b5f
6 changed files with 15 additions and 6 deletions

View File

@@ -95,6 +95,7 @@ inline void onReceiveProto(char *topic, byte *payload, size_t length)
p->hop_start = e.packet->hop_start;
p->want_ack = e.packet->want_ack;
p->via_mqtt = true; // Mark that the packet was received via MQTT
p->transport_mechanism = meshtastic_MeshPacket_TransportMechanism_TRANSPORT_MQTT;
p->which_payload_variant = e.packet->which_payload_variant;
memcpy(&p->decoded, &e.packet->decoded, std::max(sizeof(p->decoded), sizeof(p->encrypted)));