I am developing a new interface that will allow external devices to control levers and buttons. It is based on the web server, and the idea is to send POST requests that will be handled by the Web Server. The format will be JSON, as for the GET API:
[
{
"TypeName": "THROTTLE",
"ControlIndex": 0,
"Value": 0.1
},
...
]
(the index is needed to activate controls that depend on a screen being activated or not).
Technical details: I'm re-using HandleUserInput() function of CabViewDiscreteRenderer, substituting ChangedValue() by the value given by the API. Therefore, minimal code changes are needed to support all existing cab controls.
Any ideas or suggestions?