Telnet usage: Difference between revisions

Jump to navigation Jump to search
m (→‎subscribe and unsubscribe: http://forum.flightgear.org/viewtopic.php?f=18&t=21561&p=197647&hilit=subscribe+unsubscribe#p197647)
Line 245: Line 245:
For each changed property, the notification response will be in the form of:
For each changed property, the notification response will be in the form of:
'''/some/property=value (terminator)'''
'''/some/property=value (terminator)'''


For example, to subscribe to all properties under '''/local-weather''', use '''subscribe /local-weather'''. To subscribe to all properties under '''/canvas''', use '''subscribe /canvas'''.
For example, to subscribe to all properties under '''/local-weather''', use '''subscribe /local-weather'''. To subscribe to all properties under '''/canvas''', use '''subscribe /canvas'''.
Line 252: Line 253:
Note that it probably makes sense to use the raw (data) mode.
Note that it probably makes sense to use the raw (data) mode.
If you still want to support older FG versions, you should probably check the version property first, or simply copy the output from running "help" and checking if it contains the "subscribe" string or not - so that you can fall back to polling instead.
If you still want to support older FG versions, you should probably check the version property first, or simply copy the output from running "help" and checking if it contains the "subscribe" string or not - so that you can fall back to polling instead.
{{FGCquote
  |support for "subscriptions" via telnet is a hack, nothing more - it should have been deprecated by HLA, but so far HLA isn't yet quite  ready for showtime unfortunately.<br/>
I feel it would be better to teach people how to use HLA to do such things, than adding even more stuff to messy, and conceptually-broken, features like the telnet/props code, or even the multiplayer code for that matter.<br/>
The underlying code contains some really weird assumptions and lots of hard-coded restrictions, adding stuff to it is always going to be a compromise.
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=197647#p197647
    |title=<nowiki>Re: Virtual Panel/Control from Web Browser</nowiki>
    |author=<nowiki>Hooray</nowiki>
    |date=<nowiki>Sat Jan 11</nowiki>
  }}
}}


== Interfacing with other programs ==
== Interfacing with other programs ==

Navigation menu