According to https://wiki.flightgear.org/Property_Tree_Servers
I should be able to set up multiple httpd server.
Some background of what I am trying to achieve.
I have 2 programs that is communicating through http to get value from the property tree
An example is doing a request for http://localhost:8081/json/orientation/pitch-deg
I notice that I cannot have 2 program reading from the same port, the second program would fail to connect so I figured opening a second server is the way to go.
The follow is my commandline settings
fgfs
--httpd=8081
--httpd=8082
--telnet=5001
--allow-nasal-from-sockets
--native-fdm=socket,out,60,192.168.1.4,4001,udp
--native-ctrls=socket,out,60,192.168.1.4,4002,udp
The problem I am having now is localhost:8082 does not serve anything.
If there is a better way to read the property tree at a high frequency please show.
Any help and suggestions would be appreciated. Thanks in advance.