How can I identify the specific named shadow that triggered an update/delta when I subscribe with wildcard on the shadow name

In my AWS FreeRTOS application I have several named shadows in my application and I’m subscribing to delta update on them by using:
$aws/things/THING_NAME/shadow/name/+/update/delta
Now, when there is an hit I get a JSON with the updated state but I don’t know to which of the named shadows its belong.

Are you not able to identify that from the MQTT topic you get the update delta message on?

This is what I get as a response:


Is there a way for me to extract the name out of it?
How?

OK, I got it, I can find it in the MQTTPublishInfo_t that is passed to the subscription callback and extract it from the pTopicName
Thanks!