That's the "Hub" version. I'm not sure it will work anymore. It hasn't been supported for years.
There's an actively-maintained version that was "forked" off an earlier version of the original for use with the Saitek Flight Panels hardware. However, it also has the Arduino library, so it works the same as far as Arduinos are concerned. Plus being actively updated, it has all the more recent aircraft additions.
Despite the Flightpanels Fork DCS-BIOS version number being v0.7.48, it is far more up to date than v0.10.0
Starting the connection is harder, though, as it doesn't have the fancy interface Hub has.
Your code SHOULD work as-is in the Flightpanels Fork, and I'd suggest uninstalling the Hub version and installing the Flightpanels version.
There's a good video for Flightpanels version installation here: