Jump to content

export.lua recieving asynchron possible?


sebihepp

Recommended Posts

Hello,

 

I want to build my own cockpit in near future. I already know how to

export Data from Black Shark to an application via TCP-Sockets.

But for my Cockpit it will be necessary to send data to BS too,

For Switches f.e. .

 

I tried to use "recv = socket.try(c:recieve("*l"))" to recieve a string

terminated by a linefeed. But BS waits with the hole game until anything

is sent. That's the synchron mode.

 

Is there any possibility to ask, if there is data waiting in the buffer?

Or better any way to make the connection asynchron? I searched

"lua socket" via google, but I found nothing I can use. And I don't know

wich library BS is using.

 

Or is there any other way to tell BS it should perform an clickable action?

 

best regards

Sebihepp

Ryzen 2700X, 32GByte RAM, GeForce 1080Ti, TrackIR

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...