...
Here is an example of decoding only the header of a BUFR message.
And here we have an example of decoding all the data (header + data).
A good way of seeing the contents of two parts is via the BUFR Validator. Load your favourite BUFR file there and click Validate and you will see two top-level entries: Header and Data. Expand each one to reveal the ecCodes BUFR keys and their respective values. To decode the keys under Data requires the setting of the above-mentioned "unpack" key.
For further details, please consult the eLearning resource Introduction to BUFR decoding with ecCodes.
...