Afaik the issue with IL-2 was that, yes you could get all necessary info for the gauges with DeviceLink via udp/network - but (officially) only in offline mode (there is or was mod to bypass that limitation).
In CoD you can get at the info from within mission script, FearlessFrog demonstrated it
here with Heading, Altitude, and Speed. Problem is, that it has to be
part of the mission script, which means that you've to copy it (with FMB) into all missions you want to use it in. And if you're flying online it has to be part of the mission script on the the server...
Artist