Get node id that sends POSITION_APP event using meshtastic

I’m not sure if this question is for here.
I have two arduinos Heltec Wireless Tracker running meshtastic filmware 2.3.11.2740a56 Beta from meshtastic.


I will call mesh1 the first arduino with id !33686ac8 and mesh2 the second arduino with id !3368870c.

mesh2 will work as a gateway sending all messages to an MQTT server. I have configured mesh1 to send its position every 15 seconds.

I am subscribed to the event on the MQTT server and I can verify that the position reaches the server correctly.

The problem is that it does not send the ID of the device that is sending the position, that is, I know that some device on the network sent the position but I cannot know which one it is.

In this case I have only one device connected to that gateway, but when I have more than one device. How can I know which of them has sent that position?

This is what I am receiving:

{
"channel":0,
"from":862481096,
"hops_away":0,
"id":1774283363,
"payload": {
"PDOP":100,
"altitude":-19,
"latitude_i":230476381,
"longitude_i":-815757331,
"precision_bits":32,
"sats_in_view":20,
"time":1718812368
},
"rssi":-38,
"sender":"!3368870c",
"snr":7.25,
"timestamp":1718331722,
"to":4294967295,
"type":"position"
}

The id that I get in the “sender” is the id of the gateway node and not the one that sends the position.

I have also received the nodeinfo event from that same device and, as the documentation says, in the id field of the payload I can see the device that is sending the information.

This is what I receive:

{
"channel":0,
"from":862481096,
"hops_away":0,
"id":1407678910,
"payload":{
"hardware":48,
"id":"!33686ac8",
"longname":"Mesh 1",
"shortname":"M1"
},
"rssi":-88,
"sender":"!3368870c",
"snr":6.25,
"timestamp":1718329643,
"to":4294967295,
"type":"nodeinfo"
}

But How can I know which of them has sent that position?

Hey @jaime
Sorry for the late response. the value “862481096” is decimal equivalent of your node id.
862481096 to 33686AC8.

hope that helps.