Access payload information in Device Profile Decode codec

I’d like to customize the object data generated by the Decode function. Is it possible to access the deviceName and or devEUI in the Decode function under the device profile codecs?

This information is not available. This is the function signature:

// Decode decodes an array of bytes into an object.
//  - fPort contains the LoRaWAN fPort number
//  - bytes is an array of bytes, e.g. [225, 230, 255, 0]
//  - variables contains the device variables e.g. {"calibration": "3.5"} (both the key / value are of type string)
// The function must return an object, e.g. {"temperature": 22.5}
function Decode(fPort, bytes, variables) {
  return {};
}