Or better: [(SimConnect Client - FSEconomy Operations Guide)]
If you are familiar to C# there are some examples: https://csharp.hotexamples.com/de/examples/-/SimConnect/-/php-simconnect-class-examples.html
It seems you to be ahead of me, I am currently trying to set up such a cockpit, but in theory I have already encountered its problems. I see it as having to run a program on the PC in the background that reads the settings from the simulator via the SimConnect interface and forwards them to the microcontroller of your cockpit via USB or serial interface. I’m pretty familiar with C #, but I think I need a LOT of time to do something like this.
20 Minutes later: But now you have really grabbed me. 
I want to take a closer look tomorrow, maybe there is already a solution:
https://github.com/mcashatt/RoadrunnerSimconnect