OpenTXLua icon indicating copy to clipboard operation
OpenTXLua copied to clipboard

Reading log files

Open zonArt opened this issue 4 years ago • 2 comments

Hi,

I'm working on a script to display some telemetry log files for flight debugging purpose but I hit the limitation that you cannot read more than a certain amount of chars (around 15'000) when opening a file with io.read() which leads to incomplete data in my viewer. What would you suggest to go past that limitation? I was thinking on re-reading the file when you reach the end of the buffer but have no clue on how you could tell to read it from a certain position, it only seems to read from the very beginning and for a certain amount of chars.

Any help appreciated

zonArt avatar May 26 '21 06:05 zonArt

I’m no longer doing OpenTx lua scripts and am not able to help you. My apologies.

RCdiy avatar May 26 '21 12:05 RCdiy

https://www.rcgroups.com/forums/showthread.php?2180477-LUA-scripting-Technical-discussion

RCdiy avatar May 26 '21 12:05 RCdiy