This gear up and down command is 430 and 431 :thumbup:.
Look part of my code to not block lockon for receive data:
-- Creation de coroutines pour LOSIOC
Coroutines = {} -- Tables des coroutines
function CoroutineResume(index, tCurrent)
coroutine.resume(Coroutines[index], tCurrent)
return coroutine.status(Coroutines[index]) ~= "dead"
end
--
function LOSIOCModelTimer(t)
local tNext = t
LOSIOC:StarLOSIOC()
while LOSIOC.InitOK do
if LoGetPlayerPlaneId() then
LOSIOC:ReceptionData()
LOSIOC:SendData()
else
LOSIOC.Retab = true
end
tNext = coroutine.yield()
end
end
-- Declaration des coroutines
Coroutines[1] = coroutine.create(LOSIOCModelTimer)
LoCreateCoroutineActivity(1, 0, 0.05)
you can't create server, you can create client to communicate,
for first connexion set : socket.try(sck:settimeout(4000)); delay for wait connexion with your pocket PC
when connection is OK : socket.try(sck:settimeout(0)); no wait, for no block LOCKON.
Excuse me for my bad english, I'm french.