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
m (→‎Telnet Server: fixed link)
m (→‎subscribe and unsubscribe: http://forum.flightgear.org/viewtopic.php?f=18&t=21561&p=197647&hilit=subscribe+unsubscribe#p197647)
Line 222: Line 222:


=== subscribe and unsubscribe===
=== subscribe and unsubscribe===
{{Caution|{{FGCquote
  |unlike the 'get'/set commands, the 'subscribe' command needs its argument to be an absolute path from the root, e.g.:
<syntaxhighlight lang="teraterm">
subscribe /sim/time/real/seconds
</syntaxhighlight>
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=197611#p197611
    |title=<nowiki>Re: Virtual Panel/Control from Web Browser</nowiki>
    |author=<nowiki>Kabuki</nowiki>
    |date=<nowiki>Fri Jan 10</nowiki>
  }}
}}
}}
You'll find two new telnet commands in FG >= 2.8 that provide a very simple "subscription" mechanism, so that you can register listeners instead of using polling to get property updates.  
You'll find two new telnet commands in FG >= 2.8 that provide a very simple "subscription" mechanism, so that you can register listeners instead of using polling to get property updates.  
Obviously, that makes only sense for non-FDM (non-tied) properties and properties that are not updated at frame rate.  
Obviously, that makes only sense for non-FDM (non-tied) properties and properties that are not updated at frame rate.  

Navigation menu