Obtain nmea2000 PGN code of NMEA2000 C++ library by Timo

Hi, I need to get the pgn number from the messages read on an NMEA bus with the Timo NMEA2000 library used on a raspberry pi, but I can't understand which library commands to use. can you help me please?