Telnet usage: Difference between revisions

Jump to navigation Jump to search
(Switch to {{gitorious merge request}} and {{flightgear source}} to fix all the broken Gitorious links.)
Line 233: Line 233:
   }}
   }}
}}
}}
two important gotchas:
* The subscribe command does return an echo reply even in data mode. The other non retrieving does not, including unsubscribe(!).
* The ls command replies with one line per item but nothing that signals that all items are listed. If you want to use ls in data mode you have to set a timeout to the reader. <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=307251#p307251
  |title  =  <nowiki> Python3 class for telnet </nowiki>
  |author =  <nowiki> jam007 </nowiki>
  |date  =  Mar 19th, 2017
  |added  =  Mar 19th, 2017
  |script_version = 0.40
  }}</ref>
}}
}}
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.  

Navigation menu