Qbasic8 Posted September 4, 2014 Posted September 4, 2014 I made a server which is connected to my PCDuino. The game connects to my server and sends data just fine. What I need to know is how do I import this incoming data into the Export.lua script? What is it looking for? I can send data out fine, but I can't find any example of the message sending the game to say turn on the battery power button. Any info would be awesome!
towsim Posted September 4, 2014 Posted September 4, 2014 The only possibility is to poll the external data out of one of the three standard call backs: LuaExportBeforeNextFrame LuaExportAfterNextFrame LuaExportActivityNextEvent Example: LuaExportAfterNextFrame = function() -- poll your data interface for external data (DLL, network...) -- inject the data into DCS like: device:performClickableAction(..... end [sIGPIC][/sIGPIC]
Recommended Posts